#219 ConvertToRawBits does not allow endianness control

open
nobody
None
5
2012-11-13
2012-11-13
Nathanael Jones
No

ConvertToRawBits cannot be used to populate a GDI+ 48 or 64-bit bitmap from a 48 or 64-bit FreeImage instance, as the bytes are written in a different order than they are interpreted by GDI+, causing the red and blue channels to be swapped. Strangely, it works properly for 24 and 32-bit bitmaps.

This may or may not be a bug, but it is a frustrating limitation.

Discussion