ImageGear Professional for Windows ActiveX
ChannelDepthsChange Method

Description:

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.

Syntax:

      ChannelDepthsChange(NewDepths as Variant, enumIGDepthChangeMode
ScaleMode))

Parameters:

Name Description
NewDepths Array of new channel depths to which to change the image.
ScaleMode An enumIGDepthChangeMode Enumeration value.

Return Value:

None

Bits Per Pixel:

N/A

Example:

 
Copy Code
Dim d(3) As Long
d(0) = 8
d(1) = 8
d(2) = 8
currentPage.ChannelDepthsChange d, IG_DEPTH_CHANGE_SCALE

Sample:

None

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback