ImageGear for Java
convertColorSpace(ImGearRasterPage,ImGearColorSpace) Method
Image to convert color space.
New color space.
Converts page to new color space.

Note: Conversion to Grayscale colorspace takes into account the human eye's sensitivity to different parts of the light spectrum. ImageGear uses the following formula when converting from RGB to Grayscale: Gray = Red * 77 / 255 + Green * 151 / 255 + Blue * 28 / 255. If you need to convert an image to Grayscale using equal weights for Red, Green and Blue, or any other weights, use convertColorSpace(ImGearRasterPage,ImGearColorSpace,double[,])

com.accusoft.imagegear.core.ImGearRasterPagecom.accusoft.imagegear.core.ImGearColorSpace

Syntax
public static void convertColorSpace( 
   ImGearRasterPage page,
   ImGearColorSpace newColorSpace
)

Parameters

page
Image to convert color space.
newColorSpace
New color space.
See Also

Reference

ImGearRasterProcessing Class
ImGearRasterProcessing Members
Overload List

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback