How can I load images onto surfaces with a different pixel format?
Converting the pixel format is processor intensive, so you will want to perform the conversion once when you load the image. GDI can be used to perform this conversion for you – check out the article Color Depth Conversion of Bitmaps Using GDI for a quick tutorial, including source code for a function that handles image loading, format conversion, and color key setup in one quick step.
Related Questions
- Can I load the XML data from a different file location than the default? Can I load my images and thumbs from different folders than the default?
- Does wine mature at different rates depending on the format in which it’s bottled?
- What makes solid surfaces so different to granite, laminate and tile surfaces?