Skip to content

PdfLinearGradientBrush class

View as Markdown

Namespace: PdfNetStack.Drawing
Assembly: PdfNetStack.dll
Package: PdfNetStack

A gradient along a line between two points, in canvas coordinates.

public sealed class PdfLinearGradientBrush : PdfGradientBrush

Inheritance

object ← PdfBrush ← PdfGradientBrush ← PdfLinearGradientBrush

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)

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)

start PdfPoint

end PdfPoint

startColor PdfColor

endColor PdfColor

Where offset 1 lies.

public PdfPoint End { get; }

PdfPoint

Where offset 0 lies.

public PdfPoint Start { get; }

PdfPoint