Computer Science Canada Pictures beside put statements |
Author: | hamid14 [ Sun Oct 18, 2009 2:11 pm ] |
Post subject: | Pictures beside put statements |
I wanna put a picture of a blue potion.BMP beside the output from put statement. I tried drawing the pic beside it, but it was hidden behind the put line. I'm using turing 4.1 version. here is the code var bluepic : int := Pic.FileNew ("bluepotion2.BMP") put "This is a blue potion!" Btw, i removed the draw pic from this, it didn't work. Thanks in advance. |
Author: | DtY [ Sun Oct 18, 2009 2:13 pm ] |
Post subject: | RE:Pictures beside put statements |
Put always draws a background, so it will clear whatever is behind it. It should work though if you put the text, and then draw the image afterwards |
Author: | hamid14 [ Sun Oct 18, 2009 2:30 pm ] |
Post subject: | Re: Pictures beside put statements |
OMG! Thank you very much! Solution was so simple, but I didn't get it. So ashamed... |
Author: | Kharybdis [ Sun Oct 18, 2009 6:34 pm ] |
Post subject: | Re: Pictures beside put statements |
another solution would be to use the command Font.Draw. It draws text without drawing a background. |
Author: | ecookman [ Sun Oct 18, 2009 8:47 pm ] |
Post subject: | RE:Pictures beside put statements |
then you can use Font.New and customize your font. Look in the help for the description on how to use the function. |