Enum GradientRepetitionMode
Modes to repeat a gradient.
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public enum GradientRepetitionMode
Fields
Name | Description |
---|---|
DontFill | With DontFill a gradient does not touch any pixel beyond it's borders. For the LinearGradientBrush this is beyond the orthogonal through start and end, TODO For the cref="PolygonalGradientBrush" it's outside the polygon, For RadialGradientBrush and EllipticGradientBrush it's beyond 1.0. |
None | don't repeat, keep the color of start and end beyond those points stable. |
Reflect | Reflect the gradient. Similar to Repeat, but each other repetition uses inverse order of ColorStops. Used on a Black-White gradient, Reflect leads to Black->{gray}->White->{gray}->White... |
Repeat | Repeat the gradient. If it's a black-white gradient, with Repeat it will be Black->{gray}->White|Black->{gray}->White|... |