Share via


GammaRamp.SetRed(Int16[]) Method (Microsoft.DirectX.Direct3D)

Sets the red component of the gamma ramp.

Definition

Visual Basic Public Sub SetRed( _
    ByVal value() As Short _
)
C# public void SetRed(
    short[] value
);
C++ public:
void SetRed(
    array<short>^ value
);
JScript public function SetRed(
    value : short[]
);

Parameters

value System.Int16[]
A 256-element integer array that represents the red component.

Remarks

Exceptions

ArgumentExceptionLeave Site

The value parameter is not a 256-element integer array. The array must have a size of 256.