L_BitmapHasMeaningfulAlpha

#include "l_bitmap.h"

L_LTKRN_API L_BOOL L_BitmapHasMeaningfulAlpha(pBitmap)

Determines whether the bitmap has meaningful alpha channel data.

Parameters

pBITMAPHANDLE pBitmap

Pointer to the bitmap handle referencing the bitmap to test.

Returns

Value Meaning
TRUE At least one alpha channel value is not equal to 0xFF.
FALSE Bitmap does not have meaningful alpha or there was an error.

Comments

The bitmap has meaningful alpha if not all pixels have the same alpha value or if the values are all the same but equal to 0x00 or 0xFF.

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

Help Version 21.0.2021.4.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help