Click or drag to resize

PdfLinearGradientBrush Constructor (PointF, PointF, PdfRGBColor, PdfRGBColor)

Initializes a new instance of theclass.

Namespace: Spire.Pdf.Graphics
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public PdfLinearGradientBrush(
	PointF point1,
	PointF point2,
	PdfRGBColor color1,
	PdfRGBColor color2
)

Parameters

point1
Type: System.Drawing PointF
The starting point of the gradient.
point2
Type: System.Drawing PointF
The end point of the gradient.
color1
Type: Spire.Pdf.Graphics PdfRGBColor
The starting color of the gradient.
color2
Type: Spire.Pdf.Graphics PdfRGBColor
The end color of the gradient.
See Also