Editar

Partilhar via


WhiteSaturationCurveEffect(CurveChannel, Int32) Constructor

Definition

Creates a new WhiteSaturationCurveEffect with the specified white saturation value.

public:
 WhiteSaturationCurveEffect(System::Drawing::Imaging::Effects::CurveChannel channel, int whiteSaturation);
public WhiteSaturationCurveEffect (System.Drawing.Imaging.Effects.CurveChannel channel, int whiteSaturation);
new System.Drawing.Imaging.Effects.WhiteSaturationCurveEffect : System.Drawing.Imaging.Effects.CurveChannel * int -> System.Drawing.Imaging.Effects.WhiteSaturationCurveEffect
Public Sub New (channel As CurveChannel, whiteSaturation As Integer)

Parameters

channel
CurveChannel

The channel or channels that the effect is applied to.

whiteSaturation
Int32

A value of t specifies that the interval [0, t] is mapped linearly to the interval [0, 255]. For example, if

Exceptions

whiteSaturation was less than 1 or greater than 255.

Remarks

For example, if whiteSaturation is equal to 240, then color channel values in the interval [0, 240] are adjusted so that they spread out over the interval [0, 255]. Color channel values greater than 240 are set to 255.

Applies to