Jump to content

DrawImage and Transparency


Birdman
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...