Compositor.CreateColorGradientStop Method

Definition

Overloads

CreateColorGradientStop()

Creates an instance of CompositionColorGradientStop.

CreateColorGradientStop(Single, Color)

Creates an instance of CompositionColorGradientStop with the specified offset and color.

CreateColorGradientStop()

Creates an instance of CompositionColorGradientStop.

public:
 virtual CompositionColorGradientStop ^ CreateColorGradientStop() = CreateColorGradientStop;
/// [Windows.Foundation.Metadata.Overload("CreateColorGradientStop")]
CompositionColorGradientStop CreateColorGradientStop();
[Windows.Foundation.Metadata.Overload("CreateColorGradientStop")]
public CompositionColorGradientStop CreateColorGradientStop();
function createColorGradientStop()
Public Function CreateColorGradientStop () As CompositionColorGradientStop

Returns

The created CompositionColorGradientStop object.

Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Applies to

CreateColorGradientStop(Single, Color)

Creates an instance of CompositionColorGradientStop with the specified offset and color.

public:
 virtual CompositionColorGradientStop ^ CreateColorGradientStop(float offset, Color color) = CreateColorGradientStop;
/// [Windows.Foundation.Metadata.Overload("CreateColorGradientStopWithOffsetAndColor")]
CompositionColorGradientStop CreateColorGradientStop(float const& offset, Color const& color);
[Windows.Foundation.Metadata.Overload("CreateColorGradientStopWithOffsetAndColor")]
public CompositionColorGradientStop CreateColorGradientStop(float offset, Color color);
function createColorGradientStop(offset, color)
Public Function CreateColorGradientStop (offset As Single, color As Color) As CompositionColorGradientStop

Parameters

offset
Single

float

The location of the gradient stop within the gradient vector.

color
Color

The color of the gradient stop.

Returns

The created CompositionColorGradientStop object.

Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Applies to