Initializes a new instance of the class.

Namespace: Spire.Pdf.Graphics
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 7.9.2.0 (7.9.2.1020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public PdfLinearGradientBrush(
	RectangleF rect,
	PdfRGBColor color1,
	PdfRGBColor color2,
	PdfLinearGradientMode mode
)
Public Sub New ( 
	rect As RectangleF,
	color1 As PdfRGBColor,
	color2 As PdfRGBColor,
	mode As PdfLinearGradientMode
)
public:
PdfLinearGradientBrush(
	RectangleF rect, 
	PdfRGBColor color1, 
	PdfRGBColor color2, 
	PdfLinearGradientMode mode
)
new : 
        rect : RectangleF * 
        color1 : PdfRGBColor * 
        color2 : PdfRGBColor * 
        mode : PdfLinearGradientMode -> PdfLinearGradientBrush

Parameters

rect
RectangleF
A RectangleF structure that specifies the bounds of the linear gradient.
color1
PdfRGBColor
The starting color for the gradient.
color2
PdfRGBColor
The ending color for the gradient.
mode
PdfLinearGradientMode
The mode.

See Also