ImageGear for .NET
AdjustContrast(ImGearRasterPage,Double,Double,Double,ImGearContrastModes,ImGearChannelRange) Method
See Also  Send Feedback
ImageGear21.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class > AdjustContrast Method : AdjustContrast(ImGearRasterPage,Double,Double,Double,ImGearContrastModes,ImGearChannelRange) Method




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.

Glossary Item Box

This method adjusts contrast, brightness, and gamma.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

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.

Remarks

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.CanApplyAdjustContrast method to check whether the operation can be performed.

See Also

©2013. Accusoft Corporation. All Rights Reserved.