Birdman Posted June 12, 2011 Share Posted June 12, 2011 Im using DrawImage to draw a Texture into the screen, in which surface format i have to make the DDS so it shows with transparency? This is the code: TTexture img= LoadTexture("abstract::image.dds"); DrawImage(img,40,50,-1,-1); The result is a white box of the image size (without transparency) and with a circle i drawed inside. Is there a command i'm missing to load the texture with transparent background? Thanks a lot in advance. Quote Link to comment Share on other sites More sharing options...
macklebee Posted June 13, 2011 Share Posted June 13, 2011 Try SetBlend() SetBlend(1) DrawImage(...) SetBlend(0) Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Birdman Posted June 13, 2011 Author Share Posted June 13, 2011 thanks macklebee, this worked! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.