Jump to content
  • Advertisement
Sign in to follow this  
amr eshra

problem in adding texture2d in XNA !!!

This topic is 3776 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

when i add an image in the xna project , the photo appears with its white background how can i make the photo appears without its background (make it transparent )

Share this post


Link to post
Share on other sites
Advertisement
You could set the colour key property to white in the content processor properties for that image and set colour key enabled to true.

I haven't tried this myself so their might be another step in the code to actually get it working.

Else you could set the alpha in an art package like photoshop then call spriteBatch.Begin(SpriteBlendMode.AlphaBlend).

HTH.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!