GetBitmapInfoEx
int GetBitmapInfoEx (int bitmapID, int *colorSize, int *bitsSize, int *maskSize, int *alphaSize);
Purpose
Obtains size information about the image associated with a bitmap. You can use this information to allocate the buffers you pass to GetBitmapDataEx. GetBitmapInfoEx is similar to GetBitmapInfo, except that GetBitmapInfoEx supports alpha-channel transparency.
You can obtain the ID of the bitmap object from functions such as NewBitmapEx and GetCtrlBitmap.
As an alternative to this function, you can call AllocBitmapDataEx, which allocates the buffers for you.
Parameters
Input | ||
Name | Type | Description |
bitmapID | int | ID of the bitmap object that contains the image. You can obtain the ID from functions such as NewBitmapEx and GetCtrlBitmap. |
Output | ||
Name | Type | Description |
colorSize | int | Number of bytes in the image color table. This parameter value is 0 if the pixel depth is greater than 8. You can pass NULL for this parameter. |
bitsSize | int | Number of bytes in the image bitmap. You can pass NULL for this parameter. |
maskSize | int | Number of bytes in the image mask. This parameter value is 0 if no mask exists. You can pass NULL for this parameter. |
alphaSize | int | Number of bytes in the image alpha channel. This parameter value is 0 if no alpha-channel data exists. You can pass NULL for this parameter. |
Return Value
Name | Type | Description |
status | int | Return value indicating whether the function was successful. A negative number indicates that an error occurred. |
Additional Information
Library: User Interface Library
Include file: userint.h
LabWindows/CVI compatibility: LabWindows/CVI 8.0 and later