This method adjusts contrast, brightness, and gamma.
Syntax
'Declaration
Public Overloads Shared Sub AdjustContrast( _
ByVal As ImGearRasterPage, _
ByVal As Double, _
ByVal As Double, _
ByVal As Double, _
ByVal As ImGearContrastModes, _
ByVal As ImGearChannelRange, _
ByVal 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)
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.
See Also