ImageGear21.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class > AdjustContrast Method : AdjustContrast(ImGearRasterPage,Double,Double,Double,ImGearContrastModes,ImGearChannelRange) Method |
'Declaration Public Overloads Shared Sub AdjustContrast( _ ByVal page As ImGearRasterPage, _ ByVal contrast As Double, _ ByVal brightness As Double, _ ByVal gamma As Double, _ ByVal mode As ImGearContrastModes, _ ByVal channels As ImGearChannelRange _ )
'Usage Dim page As ImGearRasterPage Dim contrast As Double Dim brightness As Double Dim gamma As Double Dim mode As ImGearContrastModes Dim channels As ImGearChannelRange ImGearRasterProcessing.AdjustContrast(page, contrast, brightness, gamma, mode, channels)
public static void AdjustContrast( ImGearRasterPage page, double contrast, double brightness, double gamma, ImGearContrastModes mode, ImGearChannelRange channels )
public: static void AdjustContrast( ImGearRasterPage* page, double contrast, double brightness, double gamma, ImGearContrastModes mode, ImGearChannelRange channels )
public: static void AdjustContrast( ImGearRasterPage^ page, double contrast, double brightness, double gamma, ImGearContrastModes mode, ImGearChannelRange channels )
Can be applied only to the raster pages with standard (non Run-Ends) DIB.
If ContrastMode is equal to ImGearContrastModes.PALETTE, DIB must have a palette.
Use ImGearRasterProcessingVerifier.CanApplyAdjustContrast method to check whether the operation can be performed.