com.spire.pdf.graphics
Class PdfLinearGradientBrush

java.lang.Object
  extended by com.spire.pdf.graphics.PdfBrush
      extended by com.spire.pdf.graphics.PdfGradientBrush
          extended by com.spire.pdf.graphics.PdfLinearGradientBrush

public class PdfLinearGradientBrush
extends PdfGradientBrush

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

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.