ImageGear v26.3 - Updated
ImageGear.Core Assembly / ImageGear.Processing Namespace / ImGearRasterProcessing Class / InvertContrast Method / InvertContrast(ImGearRasterPage,ImGearContrastModes,ImGearChannelRange) Method
Image to invert contrast.
One of the contrast processing modes: ImGearContrastModes.PALETTE, ImGearContrastModes.PIXEL, ImGearContrastModes.AUTO.
Channel range to invert contrast.




In This Topic
    InvertContrast(ImGearRasterPage,ImGearContrastModes,ImGearChannelRange) Method
    In This Topic
    Inverts image contrast.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub InvertContrast( _
       ByVal page As ImGearRasterPage, _
       ByVal mode As ImGearContrastModes, _
       ByVal channels As ImGearChannelRange _
    ) 
    'Usage
     
    Dim page As ImGearRasterPage
    Dim mode As ImGearContrastModes
    Dim channels As ImGearChannelRange
     
    ImGearRasterProcessing.InvertContrast(page, mode, channels)
    public static void InvertContrast( 
       ImGearRasterPage page,
       ImGearContrastModes mode,
       ImGearChannelRange channels
    )
    public: static void InvertContrast( 
       ImGearRasterPage* page,
       ImGearContrastModes mode,
       ImGearChannelRange channels
    ) 
    public:
    static void InvertContrast( 
       ImGearRasterPage^ page,
       ImGearContrastModes mode,
       ImGearChannelRange channels
    ) 

    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.
    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