ImageGear Professional v18.2 > API Reference Guide > Core Component API Reference > Core Component Objects > IGPage Object > IGPage Methods > ChannelDepthsChange Method |
Changes the channel depths of the image to the specified values. It's possible to change channel depths with or without scaling of the actual channel values for each pixel. If scaling is used, the values will be adjusted to fit the new depth to match the original proportions as closely as possible. This alters pixel data and can be a lossy operation. For example, you could scale 48-bit RGB down to 24-bit RGB using this method, or scale an alpha channel from 8 bits to 1 bit.
ChannelDepthsChange(NewDepths as Variant, enumIGDepthChangeMode
ScaleMode))
Name | Description |
---|---|
NewDepths | Array of new channel depths to which to change the image. |
ScaleMode | An enumIGDepthChangeMode Enumeration value. |
None
N/A
Copy Code
|
|
---|---|
Dim d(3) As Long d(0) = 8 d(1) = 8 d(2) = 8 currentPage.ChannelDepthsChange d, IG_DEPTH_CHANGE_SCALE |
None