ImageGear for Java
equalizeContrast(ImGearRasterPage,ImGearContrastModes,ImGearChannelRange) Method
Page to equalize.
One of the contrast processing modes: ImGearContrastModes.PALETTE, ImGearContrastModes.PIXEL, ImGearContrastModes.AUTO.
Channel range to apply EqualizeContrast.

If image is Indexed and not grayscale, modifies image's palette, otherwise modifies image's pixels. Processes only color channels.

It can be applied only to raster pages with standard (non Run-Ends) DIB.

If ContrastMode is equal to ImGearContrastModes.PALETTE, DIB must have a palette.

Use ImGearRasterProcessingVerifier.canApplyEqualizeContrast method to check whether the operation can be performed.

Equalizes image contrast.
Syntax
public static void equalizeContrast( 
   ImGearRasterPage page,
   ImGearContrastModes mode,
   ImGearChannelRange channels
)

Parameters

page
Page to equalize.
mode
One of the contrast processing modes: ImGearContrastModes.PALETTE, ImGearContrastModes.PIXEL, ImGearContrastModes.AUTO.
channels
Channel range to apply EqualizeContrast.

If image is Indexed and not grayscale, modifies image's palette, otherwise modifies image's pixels. Processes only color channels.

It can be applied only to raster pages with standard (non Run-Ends) DIB.

If ContrastMode is equal to ImGearContrastModes.PALETTE, DIB must have a palette.

Use ImGearRasterProcessingVerifier.canApplyEqualizeContrast method to check whether the operation can be performed.

See Also

Reference

ImGearRasterProcessing Class
ImGearRasterProcessing Members
Overload List

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback