ImageGear PDF v25.2 - Updated
AdjustContrast(ImGearRasterPage,Double,Double,Double,ImGearContrastModes,ImGearChannelRange,ImGearContrastOptions) Method




ImageGear.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class > AdjustContrast Method : AdjustContrast(ImGearRasterPage,Double,Double,Double,ImGearContrastModes,ImGearChannelRange,ImGearContrastOptions) 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 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 channel range to process.
ImGearContrastOptions class object.
This method adjusts contrast, brightness, and gamma.
Syntax
'Declaration
 
Public Overloads Shared Sub AdjustContrast( _
   ByVal page As ImGearRasterPage, _
   ByVal contrast As Double, _
   ByVal brightness As Double, _
   ByVal gamma As Double, _
   ByVal mode As ImGearContrastModes, _
   ByVal channels As ImGearChannelRange, _
   ByVal options As ImGearContrastOptions _
) 
'Usage
 
Dim page As ImGearRasterPage
Dim contrast As Double
Dim brightness As Double
Dim gamma As Double
Dim mode As ImGearContrastModes
Dim channels As ImGearChannelRange
Dim options As ImGearContrastOptions
 
ImGearRasterProcessing.AdjustContrast(page, contrast, brightness, gamma, mode, channels, options)
public static void AdjustContrast( 
   ImGearRasterPage page,
   double contrast,
   double brightness,
   double gamma,
   ImGearContrastModes mode,
   ImGearChannelRange channels,
   ImGearContrastOptions options
)
public: static void AdjustContrast( 
   ImGearRasterPage* page,
   double contrast,
   double brightness,
   double gamma,
   ImGearContrastModes mode,
   ImGearChannelRange channels,
   ImGearContrastOptions* options
) 
public:
static void AdjustContrast( 
   ImGearRasterPage^ page,
   double contrast,
   double brightness,
   double gamma,
   ImGearContrastModes mode,
   ImGearChannelRange channels,
   ImGearContrastOptions^ options
) 

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 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 channel range to process.
options
ImGearContrastOptions class object.
Remarks
Processes the specified range of channels.

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

See Also

Reference

ImGearRasterProcessing Class
ImGearRasterProcessing Members
Overload List
ImGearContrastOptions Class
ImGearChannelRange Structure
ImGearContrastModes Enumeration
ImGearRasterPage Class

Is this page helpful?
Yes No
Thanks for your feedback.