Loadimage() flag to obtain a 32 bits image from a 24b file
Posted: Thu Jun 09, 2011 10:11 am
Well, all is said in the title 
Loadimage() can load 24 bits images, but to alter them with other 32 bits images (applying an alpha text on it for example), you have to create a 32 bits image, load the 24 bits one, copy it on the 32 bits and free the 24 bits.
So it would be nice to have a flag to load the 24 bits image and put it directly into a 32 bits buffer (with alpha set or not).

Loadimage() can load 24 bits images, but to alter them with other 32 bits images (applying an alpha text on it for example), you have to create a 32 bits image, load the 24 bits one, copy it on the 32 bits and free the 24 bits.
So it would be nice to have a flag to load the 24 bits image and put it directly into a 32 bits buffer (with alpha set or not).