ColorStop Struct
A color of a paint of a color glyph: a stop of a color line, or the color of a solid paint.
public readonly struct ColorStop : IEquatable<ColorStop>- Implements
Constructors
| Name | Description |
|---|---|
| ColorStop(double, double, double, double, double, bool) | A color of a paint of a color glyph: a stop of a color line, or the color of a solid paint. |
ColorStop(double, double, double, double, double, bool)
A color of a paint of a color glyph: a stop of a color line, or the color of a solid paint.
public ColorStop(double Offset, double Red, double Green, double Blue, double Alpha, bool IsForeground)Parameters
Offsetdouble- The position of the stop on its color line, from 0 to 1 once the line is normalized.
Reddouble- The red component, from 0 to 1, not multiplied by the alpha.
Greendouble- The green component.
Bluedouble- The blue component.
Alphadouble- The opacity, from 0 to 1.
IsForegroundbool- Whether the color is the one of the text: its components are then those of the brush the text is drawn with, and
Alphamultiplies its opacity.
Properties
| Name | Description |
|---|---|
| Alpha | The opacity, from 0 to 1. |
| Blue | The blue component. |
| Green | The green component. |
| IsForeground | Whether the color is the one of the text: its components are then those of the brush the text is drawn with, and Alpha multiplies its opacity. |
| Offset | The position of the stop on its color line, from 0 to 1 once the line is normalized. |
| Red | The red component, from 0 to 1, not multiplied by the alpha. |
Alpha
ColorStop.csBlue
ColorStop.csGreen
ColorStop.csIsForeground
ColorStop.csOffset
ColorStop.csRed
ColorStop.csMethods
| Name | Description |
|---|---|
| Deconstruct(double, double, double, double, double, bool) | |
| Equals(ColorStop) | |
| Equals(object) | |
| GetHashCode() | |
| ToString() |
Deconstruct(double, double, double, double, double, bool)
Equals overloads
Equals(ColorStop)
Equals(object)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(ColorStop, ColorStop) | |
| operator !=(ColorStop, ColorStop) |