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
)
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
-
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