Author |
Message |
hamid14
![](http://compsci.ca/v3/uploads/user_avatars/12047066924bcf67a12efdb.png)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
DtY
![](http://compsci.ca/v3/uploads/user_avatars/8576159234be48b7a8b0e8.png)
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
hamid14
![](http://compsci.ca/v3/uploads/user_avatars/12047066924bcf67a12efdb.png)
|
Posted: 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... |
|
|
|
|
![](images/spacer.gif) |
Kharybdis
![](http://compsci.ca/v3/uploads/user_avatars/111642592477ec7e78e574.gif)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
ecookman
![](http://compsci.ca/v3/uploads/user_avatars/5690458955648ca661c338.gif)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
|