DrawImage and transparency

Blitz3D Forums/Blitz3D Beginners Area/DrawImage and transparency

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi all,

I am trying to display with transparency a TGA image that has R,G,B and alpha channel. The Blitz manual says that DrawBlock paints without taking into account transparency or MaskImage but that Drawimage does take them into account. I am using the latter but all image gets displayed regardless of the information present in the transparency channel. I dont have problems texturing the image on a 3D surface. In that case transparency is fine. But, what I need is 2D painting with transparency. My code:

-----------------------
Graphics 1280,1024,32,1

im=LoadImage("temp.tga")
While not keyhit(1)
DrawImage im,0,0
Wend
-----------------------

Thanks for your help