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,
	float angle
)
Public Sub New ( 
	rect As RectangleF,
	color1 As PdfRGBColor,
	color2 As PdfRGBColor,
	angle As Single
)
public:
PdfLinearGradientBrush(
	RectangleF rect, 
	PdfRGBColor color1, 
	PdfRGBColor color2, 
	float angle
)
new : 
        rect : RectangleF * 
        color1 : PdfRGBColor * 
        color2 : PdfRGBColor * 
        angle : float32 -> 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.
angle
Single
The angle, measured in degrees clockwise from the x-axis, of the gradient's orientation line.

See Also