Enum GradientRepetitionMode
- Namespace
- SixLabors.ImageSharp.Drawing.Processing
- Assembly
- SixLabors.ImageSharp.Drawing.dll
Modes to repeat a gradient.
public enum GradientRepetitionMode
Fields
DontFill = 3With DontFill a gradient does not touch any pixel beyond it's borders. For the LinearGradientBrush this is beyond the orthogonal through start and end, For RadialGradientBrush and EllipticGradientBrush it's beyond 1.0.
None = 0Don't repeat, keep the color of start and end beyond those points stable.
Reflect = 2Reflect 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 = 1Repeat the gradient. If it's a black-white gradient, with Repeat it will be Black->{gray}->White|Black->{gray}->White|...