Visual Basic
C#
Managed Extensions for C++
C++/CLI
Parameters
- page
- Image to adjust contrast.
- contrast
- Contrast value.
- brightness
- Brightness value.
- gamma
- Gamma value.
If the image is indexed and not grayscale, it modifies the image's palette, otherwise it modifies the image's pixels. Processes only color channels. Contrast mode is ImGearContrastModes.AUTO.
Average parameter range:
- Contrast: -2 ... +2 (negative means contrast inversion. In case of 1 no changes)
- Brightness: -128...+128
- Gamma: 0...10
Can be applied only to the raster pages with standard (non Run-Ends) DIB.
Method ImGearRasterProcessing.Verifier.CanApplyAdjustContrast (ImGearPage page)
can be called to check whether the operation can be performed.
C# | Copy Code |
---|---|
// Increases the contrast, lowers the brightness, and increases the gamma a little.
ImGearRasterProcessing.AdjustContrast(igRasterPage, 1.4, -40, 3.5); |
Visual Basic | Copy Code |
---|---|
' Increases the contrast, lowers the brightness, and increases the gamma a little.
ImGearRasterProcessing.AdjustContrast(igRasterPage, 1.4, -40, 3.5) |