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
)
Public Sub New (
point1 As PointF,
point2 As PointF,
color1 As PdfRGBColor,
color2 As PdfRGBColor
)
public:
PdfLinearGradientBrush(
PointF point1,
PointF point2,
PdfRGBColor color1,
PdfRGBColor color2
)
new :
point1 : PointF *
point2 : PointF *
color1 : PdfRGBColor *
color2 : PdfRGBColor -> PdfLinearGradientBrush
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