L_BitmapHasMeaningfulAlpha

Summary

Determines whether the bitmap has meaningful alpha channel data.

Syntax

#include "l_bitmap.h"

L_LTKRN_API L_BOOL L_BitmapHasMeaningfulAlpha(pBitmap)

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.

See Also

Functions

Topics

Example

For an example, refer to L_SetBitmapAlpha.

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

LEADTOOLS Raster Imaging C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.