Breyta

Deila með


BrightnessContrastEffect(Int32, Int32) Constructor

Definition

Creates a new BrightnessContrastEffect with the given parameters.

public:
 BrightnessContrastEffect(int brightnessLevel, int contrastLevel);
public BrightnessContrastEffect (int brightnessLevel, int contrastLevel);
new System.Drawing.Imaging.Effects.BrightnessContrastEffect : int * int -> System.Drawing.Imaging.Effects.BrightnessContrastEffect
Public Sub New (brightnessLevel As Integer, contrastLevel As Integer)

Parameters

brightnessLevel
Int32

Integer in the range -255 through 255 that specifies the brightness level. If the value is 0, the brightness

remains the same. As the value moves from 0 to 255, the brightness of the image increases. As the value moves

from 0 to -255, the brightness of the image decreases.

contrastLevel
Int32

Integer in the range -100 through 100 that specifies the contrast level. If the value is 0, the contrast

remains the same. As the value moves from 0 to 100, the contrast of the image increases. As the value moves

from 0 to -100, the contrast of the image decreases.

Exceptions

brightnessLevel is less than -255 or greater than 255 or contrastLevel

is less than -100 or greater than 100.

Applies to