pdflineargradientbrush-ag凯发旗舰厅
com.spire.pdf.graphics
class pdflineargradientbrush
java.lang.object
com.spire.pdf.graphics.pdfbrush
com.spire.pdf.graphics.pdfgradientbrush
com.spire.pdf.graphics.pdflineargradientbrush
- all implemented interfaces:
- ipdfwrapper
public class pdflineargradientbrush
- extends pdfgradientbrush
implements linear gradient brush by using pdf axial shading pattern.
pdflineargradientbrush
public pdflineargradientbrush(java.awt.geom.point2d point1,
java.awt.geom.point2d point2,
pdfrgbcolor color1,
pdfrgbcolor color2)
- initializes a new instance of the class.
- parameters:
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.
pdflineargradientbrush
public pdflineargradientbrush(java.awt.geom.rectangle2d rect,
pdfrgbcolor color1,
pdfrgbcolor color2,
pdflineargradientmode mode)
- initializes a new instance of the class.
- parameters:
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.
pdflineargradientbrush
public pdflineargradientbrush(java.awt.geom.rectangle2d rect,
pdfrgbcolor color1,
pdfrgbcolor color2,
float angle)
- initializes a new instance of the class.
- parameters:
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.