ImageGear for Java
adjustContrast(ImGearRasterPage,double,double,double,ImGearContrastModes,ImGearChannelRange) Method
Image to adjust contrast.
Contrast value.
Brightness value.
Gamma value.
One of the following values: ImGearContrastModes.PALETTE - image palette is adjusted. If the image does not have a palette then an exception will be generated ImGearContrastModes.PIXEL - image pixels are adjusted ImGearContrastModes.AUTO - adjust mode depends on the image color space.
Structure that defines the channel range to process.

Processes the specified range of channels.

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

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

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

com.accusoft.imagegear.processing.ImGearContrastOptionsT:com.accusoft.imagegear.core.ImGearChannelRangecom.accusoft.imagegear.core.ImGearRasterPage

This method adjusts contrast, brightness, and gamma.
Syntax
public static void adjustContrast( 
   ImGearRasterPage page,
   double contrast,
   double brightness,
   double gamma,
   ImGearContrastModes mode,
   ImGearChannelRange channels
)

Parameters

page
Image to adjust contrast.
contrast
Contrast value.
brightness
Brightness value.
gamma
Gamma value.
mode
One of the following values: ImGearContrastModes.PALETTE - image palette is adjusted. If the image does not have a palette then an exception will be generated ImGearContrastModes.PIXEL - image pixels are adjusted ImGearContrastModes.AUTO - adjust mode depends on the image color space.
channels
Structure that defines the channel range to process.

Processes the specified range of channels.

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

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

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

com.accusoft.imagegear.processing.ImGearContrastOptionsT:com.accusoft.imagegear.core.ImGearChannelRangecom.accusoft.imagegear.core.ImGearRasterPage

See Also

Reference

ImGearRasterProcessing Class
ImGearRasterProcessing Members
Overload List

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback