Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

nanobyte

Bitmat Format Help

This topic is 6191 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

Hello everyone. Im writing a program that uses the sprite class found in "the zen of direct3d game programming" book. I have initialized my app to run in 32 bit color using the following format: D3DFMT_A8R8G8B8 My problem is that when I go to load bitmaps, it doesn''t work and says something like "CopyRect source format is different from destination" I know that copyrect requires the surface formats to be the same, but how do I save my bitmaps in this format. In photoshop I can only save bitmaps as 24 bits and that doesn''t work. I tried using the directx texture tool to open up the image and change the format, but that just corrupts it so that it can''t even be parsed. Any suggestions? Thanks, Chris Lynch

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!