Jump to content
  • Advertisement


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


Loading a 24 bpp image as a 16 bpp DD surface

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

Assuming that 16 bit images can only be stored as 24 bit images in memory with a 64K color limit, how can I load a 24 BPP image into a 16 BPP DirectX surface ??
This would help me save runtime memory and allow me to do alpha blending without having to set my primary surface and backbuffers to 24bbp.. Source code or links to it is most desireable but any good suggestions will help

Share this post

Link to post
Share on other sites
You should use BitBlt to copy the image data. It converts the pixelformat automatically.


Share this post

Link to post
Share on other sites

  • 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!