PdfLinearGradientBrush class
Namespace: PdfNetStack.Drawing
Assembly: PdfNetStack.dll
Package: PdfNetStack
A gradient along a line between two points, in canvas coordinates.
public sealed class PdfLinearGradientBrush : PdfGradientBrushInheritance
object ← PdfBrush ← PdfGradientBrush ← PdfLinearGradientBrush
Constructors
Section titled “Constructors”PdfLinearGradientBrush(PdfPoint, PdfPoint, IEnumerable<PdfGradientStop>, bool)
Section titled “ PdfLinearGradientBrush(PdfPoint, PdfPoint, IEnumerable<PdfGradientStop>, bool)”Creates a linear gradient from start to end.
public PdfLinearGradientBrush(PdfPoint start, PdfPoint end, IEnumerable<PdfGradientStop> stops, bool extend = true)Parameters
Section titled “Parameters”start PdfPoint
end PdfPoint
stops IEnumerable<PdfGradientStop>
extend bool
PdfLinearGradientBrush(PdfPoint, PdfPoint, PdfColor, PdfColor)
Section titled “ PdfLinearGradientBrush(PdfPoint, PdfPoint, PdfColor, PdfColor)”Creates a two color linear gradient.
public PdfLinearGradientBrush(PdfPoint start, PdfPoint end, PdfColor startColor, PdfColor endColor)Parameters
Section titled “Parameters”start PdfPoint
end PdfPoint
startColor PdfColor
endColor PdfColor
Properties
Section titled “Properties”Where offset 1 lies.
public PdfPoint End { get; }Property Value
Section titled “Property Value”Where offset 0 lies.
public PdfPoint Start { get; }