This method inverts the colors of pixels whose lightness exceeds the specified threshold.
Syntax
Parameters
- page
- Image to process.
- threshold
- Lightness threshold above which colors of pixels are inverted.
- mode
- One of the contrast processing modes: ImGearContrastModes.PALETTE, ImGearContrastModes.PIXEL, ImGearContrastModes.AUTO.
- channels
- Channel range to solarize.
Example
// Channel range to adjust contrast.
ImGearChannelRange igChannelRange = new ImGearChannelRange(0, igRasterPage.DIB.ChannelCount);
// Solarize the image, inverting the contrast the contrast if above threshold.
ImGearEffects.Solarize(igRasterPage, 200,
ImGearContrastModes.AUTO, igChannelRange);
' Channel range to adjust contrast.
Dim igChannelRange As New ImGearChannelRange(0, igRasterPage.DIB.ChannelCount)
' Solarize the image, inverting the contrast the contrast if above threshold.
ImGearEffects.Solarize(igRasterPage, 200, ImGearContrastModes.AUTO, igChannelRange)
See Also