PdfLinearGradientBrush Constructor (RectangleF, PdfRGBColor, PdfRGBColor, Single)
|
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,
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
-
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.
-
angle
-
Type:
System
Single
The angle, measured in degrees clockwise from the x-axis,
of the gradient's orientation line.
See Also