ImageGear .NET - Updated
InvertContrast(ImGearRasterPage,ImGearContrastModes,ImGearChannelRange,ImGearContrastOptions) Method




ImageGear23.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class > InvertContrast Method : InvertContrast(ImGearRasterPage,ImGearContrastModes,ImGearChannelRange,ImGearContrastOptions) Method
Image to invert contrast.
One of the contrast processing modes: ImGearContrastModes.PALETTE, ImGearContrastModes.PIXEL, ImGearContrastModes.AUTO.
Channel range to invert contrast.
Contrast options. See ImGearContrastOptions class.
Inverts image contrast.
Syntax
'Declaration
 
Public Overloads Shared Sub InvertContrast( _
   ByVal page As ImGearRasterPage, _
   ByVal mode As ImGearContrastModes, _
   ByVal channels As ImGearChannelRange, _
   ByVal options As ImGearContrastOptions _
) 
'Usage
 
Dim page As ImGearRasterPage
Dim mode As ImGearContrastModes
Dim channels As ImGearChannelRange
Dim options As ImGearContrastOptions
 
ImGearRasterProcessing.InvertContrast(page, mode, channels, options)
public static void InvertContrast( 
   ImGearRasterPage page,
   ImGearContrastModes mode,
   ImGearChannelRange channels,
   ImGearContrastOptions options
)
public: static void InvertContrast( 
   ImGearRasterPage* page,
   ImGearContrastModes mode,
   ImGearChannelRange channels,
   ImGearContrastOptions* options
) 
public:
static void InvertContrast( 
   ImGearRasterPage^ page,
   ImGearContrastModes mode,
   ImGearChannelRange channels,
   ImGearContrastOptions^ options
) 

Parameters

page
Image to invert contrast.
mode
One of the contrast processing modes: ImGearContrastModes.PALETTE, ImGearContrastModes.PIXEL, ImGearContrastModes.AUTO.
channels
Channel range to invert contrast.
options
Contrast options. See ImGearContrastOptions class.
Remarks
Processes specified range of channels.

If Mode is equal to ImGearContrastModes.PALETTE, DIB must have a palette.

Use ImGearRasterProcessingVerifier.CanApplyInvertContrast method to check whether the operation can be performed.

See Also

Reference

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