06-23-2008, 9:13
|
GregR

Joined on 05-31-2006
In House
Posts 1,607
|
Re: How do I detect if a bitmap has an alpha channel
|
 
 
|
|
|
If you don't want to make a separate call to L_FileInfo, you can pass a new pFILEINFO directly into L_LoadBitmap and it will update it just as if you called L_FileInfo separately. For more details on different uses of the FILEINFO struct in L_LoadBitmap, please see the documentation article for L_LoadBitmap.
FILEINFO_HAS_ALPHA only detects alpha channels, not transparent colors as in a PNG with single transparent color or GIFs. If you want to detect a single transparent color, this will be found in the BITMAPHANDLE.Transparency and BITMAPHANDLE.Flags.Transparency properties.
Greg Ross LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|