This function gets the number of bits allocated for each pixel channel in an image: 8, 16, or 32.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_image_bits_per_channel_get( HIGEAR hIGear, AT_INT* lpBitsPerChannel ); |
Name | Type | Description |
---|---|---|
hIGear | HIGEAR | HIGEAR handle of image. |
lpBitsPerChannel | AT_INT* | Returned number of allocated bits for each pixel channel. |
Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.
All pixel formats supported by ImageGear for C and C++.
Pixel Access
Copy Code
|
|
---|---|
AT_ERRCOUNT nErrcount; /* Number of errors on stack */ HIGEAR hImage; /* Handle of image */ AT_INT nBits; /* Number of bits per channel */ nErrcount = IG_image_bits_per_channel_get(hImage, &nBits); |