CreateTexture function and transparent background

Blitz3D Forums/Blitz3D Programming/CreateTexture function and transparent background

Filax(Posted 2004) [#1]
It is posssible to create a texture like :

MyText=CreateTexture()

But with a transparent background ? because i want make
texture with text but without background.


JoshK(Posted 2004) [#2]
Yes, use the masking flag and see a recent thread here about masking pixels.


Filax(Posted 2004) [#3]
Thanks Halo


Gabriel(Posted 2004) [#4]
Or WritePixel will write pixels including alpha values if you need full alpha.


Ziltch(Posted 2004) [#5]
Or Save texture and reload it with alpha and/or Mask flags set.


Dirk Krause(Posted 2004) [#6]
I tried that, but it just worked by reloading the texture - if there is better way, I'd appreciate a link to the thread Halo mentioned.


big10p(Posted 2004) [#7]
This one?

http://www.blitzbasic.com/Community/posts.php?topic=37139