|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.pdf.graphics.PdfBrush
com.spire.pdf.graphics.PdfGradientBrush
com.spire.pdf.graphics.PdfLinearGradientBrush
public class PdfLinearGradientBrush
Implements linear gradient brush by using PDF axial shading pattern.
| Constructor Summary | |
|---|---|
PdfLinearGradientBrush(java.awt.geom.Point2D point1,
java.awt.geom.Point2D point2,
PdfRGBColor color1,
PdfRGBColor color2)
Initializes a new instance of the class. |
|
PdfLinearGradientBrush(java.awt.geom.Rectangle2D rect,
PdfRGBColor color1,
PdfRGBColor color2,
float angle)
Initializes a new instance of the class. |
|
PdfLinearGradientBrush(java.awt.geom.Rectangle2D rect,
PdfRGBColor color1,
PdfRGBColor color2,
PdfLinearGradientMode mode)
Initializes a new instance of the class. |
|
| Constructor Detail |
|---|
public PdfLinearGradientBrush(java.awt.geom.Point2D point1,
java.awt.geom.Point2D point2,
PdfRGBColor color1,
PdfRGBColor color2)
point1 - The starting point of the gradient.point2 - The end point of the gradient.color1 - The starting color of the gradient.color2 - The end color of the gradient.
public PdfLinearGradientBrush(java.awt.geom.Rectangle2D rect,
PdfRGBColor color1,
PdfRGBColor color2,
PdfLinearGradientMode mode)
rect - A RectangleF structure that specifies the bounds of the linear gradient.color1 - The starting color for the gradient.color2 - The ending color for the gradient.mode - The mode.
public PdfLinearGradientBrush(java.awt.geom.Rectangle2D rect,
PdfRGBColor color1,
PdfRGBColor color2,
float angle)
rect - A RectangleF structure that specifies the bounds of the linear gradient.color1 - The starting color for the gradient.color2 - The ending color for the gradient.
The angle, measured in degrees clockwise from the x-axis,
of the gradient's orientation line.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||