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;
CompositionColorGradientStop CreateColorGradientStop();
[Windows.Foundation.Metadata.Overload("CreateColorGradientStop")]
public CompositionColorGradientStop CreateColorGradientStop();
function createColorGradientStop()
Public Function CreateColorGradientStop () As CompositionColorGradientStop

Returns

CompositionColorGradientStop

The created CompositionColorGradientStop object.

Attributes

Windows 10 requirements

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

CreateColorGradientStop(Single, Color)

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

public:
 virtual CompositionColorGradientStop ^ CreateColorGradientStop(float offset, Color color) = CreateColorGradientStop;
CompositionColorGradientStop CreateColorGradientStop(float offset, Color 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

The location of the gradient stop within the gradient vector.

color
Color

The color of the gradient stop.

Returns

CompositionColorGradientStop

The created CompositionColorGradientStop object.

Attributes

Windows 10 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