StretchContrast(ImGearRasterPage,ImGearContrastModes,ImGearChannelRange) Method
Stretches image contrast. Processes specified range of channels.
Parameters
- page
- Image to process.
- mode
- One of the contrast processing modes: ImGearContrastModes.PALETTE, ImGearContrastModes.PIXEL, ImGearContrastModes.AUTO.
- channels
- Channel range to process.
// Channel range to adjust contrast.
ImGearChannelRange igChannelRange = new ImGearChannelRange(0, igRasterPage.DIB.ChannelCount);
// Stretch the contrast.
ImGearRasterProcessing.StretchContrast(igRasterPage,
ImGearContrastModes.AUTO, igChannelRange);
' Channel range to adjust contrast.
Dim igChannelRange As New ImGearChannelRange(0, igRasterPage.DIB.ChannelCount)
' Stretch the contrast.
ImGearRasterProcessing.StretchContrast(igRasterPage, ImGearContrastModes.AUTO, igChannelRange)