ImageGear for Java
changeChannelDepths(ImGearRasterPage,int[],boolean) Method
Page to process.
Array containing new channels depths.
Flags indicating whether to scale pixel values according to the new channel depth.

This method does not change an image's color space, and can be applied to all colorspaces except indexed.

If dontScalePixels is false (default), pixel values are scaled according to new channel depth. Unused gaps should be filled with 0 when channel is reduced.

If dontScalePixels is true, channel depth is changed, but pixel values are not scaled. If the channel depth is increased, the pixel data is not changed. If the channel depth is decreased, the pixel value is not changed in the case when it can be accommodated within the new depth. Otherwise, it is set to the maximum value allowed by the new depth (0x0...01...1).

com.accusoft.imagegear.core.ImGearRasterPage

Changes bit depth of image channels.
Syntax
public static void changeChannelDepths( 
   ImGearRasterPage page,
   int[] newChannelDepths,
   boolean doNotScalePixels
)

Parameters

page
Page to process.
newChannelDepths
Array containing new channels depths.
doNotScalePixels
Flags indicating whether to scale pixel values according to the new channel depth.

This method does not change an image's color space, and can be applied to all colorspaces except indexed.

If dontScalePixels is false (default), pixel values are scaled according to new channel depth. Unused gaps should be filled with 0 when channel is reduced.

If dontScalePixels is true, channel depth is changed, but pixel values are not scaled. If the channel depth is increased, the pixel data is not changed. If the channel depth is decreased, the pixel value is not changed in the case when it can be accommodated within the new depth. Otherwise, it is set to the maximum value allowed by the new depth (0x0...01...1).

com.accusoft.imagegear.core.ImGearRasterPage

See Also

Reference

ImGearRasterProcessing Class
ImGearRasterProcessing Members
Overload List

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback