ColorPaint Struct

A paint of the display list of a color glyph: a color, or a gradient in its own coordinate space.

public readonly struct ColorPaint : IEquatable<ColorPaint>
Implements

Constructors

NameDescription
ColorPaint(ColorPaintKind, int, int, int, int, int)A paint of the display list of a color glyph: a color, or a gradient in its own coordinate space.

ColorPaint(ColorPaintKind, int, int, int, int, int)

A paint of the display list of a color glyph: a color, or a gradient in its own coordinate space.

public ColorPaint(ColorPaintKind Kind, int Transform, int Geometry, int FirstStop, int StopCount, int Extend)

Parameters

Kind ColorPaintKind
The kind of paint.
Transform int
The index, in the numbers of the color glyph, of the six values of the transformation from the space of the paint to the space of the glyph; -1 for none.
Geometry int
The index, in the numbers, of the geometry of a gradient.
FirstStop int
The index of the first stop of a gradient, or of the color of a solid paint.
StopCount int
The number of stops of a gradient.
Extend int
How a gradient continues outside its color line: 0 pads, 1 repeats, 2 reflects.

Properties

NameDescription
ExtendHow a gradient continues outside its color line: 0 pads, 1 repeats, 2 reflects.
FirstStopThe index of the first stop of a gradient, or of the color of a solid paint.
GeometryThe index, in the numbers, of the geometry of a gradient.
KindThe kind of paint.
StopCountThe number of stops of a gradient.
TransformThe index, in the numbers of the color glyph, of the six values of the transformation from the space of the paint to the space of the glyph; -1 for none.

How a gradient continues outside its color line: 0 pads, 1 repeats, 2 reflects.

public int Extend { get; init; }

Property value

int

FirstStop

ColorPaint.cs

The index of the first stop of a gradient, or of the color of a solid paint.

public int FirstStop { get; init; }

Property value

int

The index, in the numbers, of the geometry of a gradient.

public int Geometry { get; init; }

Property value

int

The kind of paint.

public ColorPaintKind Kind { get; init; }

Property value

ColorPaintKind

StopCount

ColorPaint.cs

The number of stops of a gradient.

public int StopCount { get; init; }

Property value

int

Transform

ColorPaint.cs

The index, in the numbers of the color glyph, of the six values of the transformation from the space of the paint to the space of the glyph; -1 for none.

public int Transform { get; init; }

Property value

int

Methods

NameDescription
Deconstruct(ColorPaintKind, int, int, int, int, int)
Equals(ColorPaint)
Equals(object)
GetHashCode()
ToString()

Deconstruct(ColorPaintKind, int, int, int, int, int)

public void Deconstruct(out ColorPaintKind Kind, out int Transform, out int Geometry, out int FirstStop, out int StopCount, out int Extend)

Parameters

Kind ColorPaintKind
Transform int
Geometry int
FirstStop int
StopCount int
Extend int

No documentation is available.

Equals overloads

Equals(ColorPaint)

public bool Equals(ColorPaint other)
Parameters
other ColorPaint
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(ColorPaint, ColorPaint)
operator !=(ColorPaint, ColorPaint)

operator ==(ColorPaint, ColorPaint)

public static bool operator ==(ColorPaint left, ColorPaint right)

Parameters

left ColorPaint
right ColorPaint

Returns

bool

No documentation is available.

operator !=(ColorPaint, ColorPaint)

public static bool operator !=(ColorPaint left, ColorPaint right)

Parameters

left ColorPaint
right ColorPaint

Returns

bool

No documentation is available.