CompositionGradientBrush CompositionGradientBrush CompositionGradientBrush CompositionGradientBrush Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Represents a brush that describes a gradient, composed of gradient stops.

public : class CompositionGradientBrush : CompositionBrush, ICompositionGradientBrushpublic class CompositionGradientBrush : CompositionBrush, ICompositionGradientBrushPublic Class CompositionGradientBrush Inherits CompositionBrush Implements ICompositionGradientBrush// This API is not available in Javascript.
Inheritance
CompositionGradientBrushCompositionGradientBrushCompositionGradientBrushCompositionGradientBrush
Attributes
Windows 10 requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Inherited Members

Inherited methods

Inherited properties

Properties

AnchorPoint AnchorPoint AnchorPoint AnchorPoint

Prerelease. Gets or sets the point on the brush to be positioned at the brush's offset.

public : Vector2 AnchorPoint { get; set; }public Vector2 AnchorPoint { get; set; }Public ReadWrite Property AnchorPoint As Vector2// This API is not available in Javascript.
Value
Vector2 Vector2 Vector2 Vector2

The point on the brush to be positioned at the brush's offset.

CenterPoint CenterPoint CenterPoint CenterPoint

Prerelease. Gets or sets the point about which the brush is rotated and scaled.

public : Vector2 CenterPoint { get; set; }public Vector2 CenterPoint { get; set; }Public ReadWrite Property CenterPoint As Vector2// This API is not available in Javascript.
Value
Vector2 Vector2 Vector2 Vector2

The point about which the brush is rotated and scaled.

ColorStops ColorStops ColorStops ColorStops

Prerelease. Gets the brush's gradient stops.

public : CompositionColorGradientStopCollection ColorStops { get; }public CompositionColorGradientStopCollection ColorStops { get; }Public ReadOnly Property ColorStops As CompositionColorGradientStopCollection// This API is not available in Javascript.
Value
CompositionColorGradientStopCollection CompositionColorGradientStopCollection CompositionColorGradientStopCollection CompositionColorGradientStopCollection

A collection of the CompositionColorGradientStop objects associated with the brush, each of which specifies a color and an offset along the brush's gradient axis. The default is an empty CompositionColorGradientStopCollection.

ExtendMode ExtendMode ExtendMode ExtendMode

Prerelease. Gets or sets a value that specifies how to draw the gradient outside the brush's gradient vector or space.

public : CompositionGradientExtendMode ExtendMode { get; set; }public CompositionGradientExtendMode ExtendMode { get; set; }Public ReadWrite Property ExtendMode As CompositionGradientExtendMode// This API is not available in Javascript.

InterpolationSpace InterpolationSpace InterpolationSpace InterpolationSpace

Prerelease. Gets or sets a value that specifies how the gradient's colors are interpolated.

public : CompositionColorSpace InterpolationSpace { get; set; }public CompositionColorSpace InterpolationSpace { get; set; }Public ReadWrite Property InterpolationSpace As CompositionColorSpace// This API is not available in Javascript.
Value
CompositionColorSpace CompositionColorSpace CompositionColorSpace CompositionColorSpace

A value of the enumeration that specifies how the gradient's colors are interpolated.

Offset Offset Offset Offset

Prerelease. Gets or sets the offset of the brush relative to the object being painted.

public : Vector2 Offset { get; set; }public Vector2 Offset { get; set; }Public ReadWrite Property Offset As Vector2// This API is not available in Javascript.
Value
Vector2 Vector2 Vector2 Vector2

The offset of the brush relative to the object being painted.

RotationAngle RotationAngle RotationAngle RotationAngle

Prerelease. Gets or sets the rotation angle of the brush in radians.

public : float RotationAngle { get; set; }public float RotationAngle { get; set; }Public ReadWrite Property RotationAngle As float// This API is not available in Javascript.
Value
float float float float

The rotation angle of the brush in radians.

RotationAngleInDegrees RotationAngleInDegrees RotationAngleInDegrees RotationAngleInDegrees

Prerelease. Gets or sets the rotation angle of the brush in degrees.

public : float RotationAngleInDegrees { get; set; }public float RotationAngleInDegrees { get; set; }Public ReadWrite Property RotationAngleInDegrees As float// This API is not available in Javascript.
Value
float float float float

The rotation angle of the brush in degrees.

Scale Scale Scale Scale

Prerelease. Gets or sets the scale to apply to the brush.

public : Vector2 Scale { get; set; }public Vector2 Scale { get; set; }Public ReadWrite Property Scale As Vector2// This API is not available in Javascript.
Value
Vector2 Vector2 Vector2 Vector2

The scale to apply to the brush.

TransformMatrix TransformMatrix TransformMatrix TransformMatrix

Prerelease. Gets or sets the matrix of transforms to apply to the brush.

public : Matrix3x2 TransformMatrix { get; set; }public Matrix3x2 TransformMatrix { get; set; }Public ReadWrite Property TransformMatrix As Matrix3x2// This API is not available in Javascript.
Value
Matrix3x2 Matrix3x2 Matrix3x2 Matrix3x2

The matrix of transforms to apply to the brush.