ImageGear for Java
convertPixelFormat(ImGearPixel,ImGearColorSpace,int[],ImGearRGBQuad[],ImGearColorSpace,int[],ImGearRGBQuad[]) Method
Pixel to convert to the new format.
Source colorspace of the pixel.
Source channel depths of the pixel. Length of the array should correspond to the srcColorSpace parameter.
Source palette used by the pixel, if its colorspace is Indexed, or null otherwise.
Colorspace to convert the pixel to.
New channel depths for the pixel. Length of the array should correspond to the dstColorSpace parameter.
Destination palette for the pixel, if destination colorspace is Indexed, or null otherwise.

Note: Using this function in a cycle for a large array of pixels could be inefficient. Consider creating a temporary com.accusoft.imagegear.core.ImGearPage class and converting its colorspace and channel depths in this case.

Converts a single pixel to new color space and channel depths.
Syntax

Parameters

pixel
Pixel to convert to the new format.
sourceColorSpace
Source colorspace of the pixel.
sourceChannelDepths
Source channel depths of the pixel. Length of the array should correspond to the srcColorSpace parameter.
sourcePalette
Source palette used by the pixel, if its colorspace is Indexed, or null otherwise.
destinationColorSpace
Colorspace to convert the pixel to.
destinationChannelDepths
New channel depths for the pixel. Length of the array should correspond to the dstColorSpace parameter.
destinationPalette
Destination palette for the pixel, if destination colorspace is Indexed, or null otherwise.

Note: Using this function in a cycle for a large array of pixels could be inefficient. Consider creating a temporary com.accusoft.imagegear.core.ImGearPage class and converting its colorspace and channel depths in this case.

See Also

Reference

ImGearRasterProcessing Class
ImGearRasterProcessing Members
Overload List

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback