ImageGear .NET v25.1 - Updated
EqualizeContrast(ImGearRasterPage,ImGearContrastModes,ImGearChannelRange) Method




ImageGear.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class > EqualizeContrast Method : EqualizeContrast(ImGearRasterPage,ImGearContrastModes,ImGearChannelRange) Method
Page to equalize.
One of the contrast processing modes: ImGearContrastModes.PALETTE, ImGearContrastModes.PIXEL, ImGearContrastModes.AUTO.
Channel range to apply EqualizeContrast.
Equalizes image contrast.
Syntax
'Declaration
 
Public Overloads Shared Sub EqualizeContrast( _
   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.EqualizeContrast(page, mode, channels)
public static void EqualizeContrast( 
   ImGearRasterPage page,
   ImGearContrastModes mode,
   ImGearChannelRange channels
)
public: static void EqualizeContrast( 
   ImGearRasterPage* page,
   ImGearContrastModes mode,
   ImGearChannelRange channels
) 
public:
static void EqualizeContrast( 
   ImGearRasterPage^ page,
   ImGearContrastModes mode,
   ImGearChannelRange channels
) 

Parameters

page
Page to equalize.
mode
One of the contrast processing modes: ImGearContrastModes.PALETTE, ImGearContrastModes.PIXEL, ImGearContrastModes.AUTO.
channels
Channel range to apply EqualizeContrast.
Remarks
If image is Indexed and not grayscale, modifies image's palette, otherwise modifies image's pixels. Processes only color channels.

It can be applied only to raster pages with standard (non Run-Ends) DIB.

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

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

See Also

Reference

ImGearRasterProcessing Class
ImGearRasterProcessing Members
Overload List