Click or drag to resize

PdfLinearGradientBrush Constructor (RectangleF, PdfRGBColor, PdfRGBColor, PdfLinearGradientMode)

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(
	RectangleF rect,
	PdfRGBColor color1,
	PdfRGBColor color2,
	PdfLinearGradientMode mode
)

Parameters

rect
Type: System.Drawing RectangleF
A RectangleF structure that specifies the bounds of the linear gradient.
color1
Type: Spire.Pdf.Graphics PdfRGBColor
The starting color for the gradient.
color2
Type: Spire.Pdf.Graphics PdfRGBColor
The ending color for the gradient.
mode
Type: Spire.Pdf.Graphics PdfLinearGradientMode
The mode.
See Also