[]
        
(Showing Draft Content)

PdfRadialGradientBrush Class

PdfRadialGradientBrush Class

Represents a brush used to fill an area with a radial gradient.

Heirarchy

Constructors

Properties

Methods

Constructors

constructor

  • Initializes a new instance of the PdfRadialGradientBrush class.

    Parameters

    • x1: number

      The X-coordinate of the inner circle's center of the radial gradient.

    • y1: number

      The Y-coordinate of the inner circle's center of the radial gradient.

    • r1: number

      The radius of the inner circle of the radial gradient.

    • x2: number

      The X-coordinate of the outer circle's center of the radial gradient.

    • y2: number

      The Y-coordinate of the outer circle's center of the radial gradient.

    • r2: number

      The radius of the outer circle of the radial gradient.

    • stops: PdfGradientStop[]

      The PdfGradientStop array to set on this brush.

    • Optional opacity: number

      The opacity of this brush.

    Returns PdfRadialGradientBrush

Properties

opacity

opacity: number

Gets or sets the opacity of the brush. The value must be in range [0, 1], where 0 indicates that the brush is completely transparent and 1 indicates that the brush is completely opaque. The default value is 1.

r1

r1: number

Gets or sets the radius of the inner circle that represents the starting point of the radial gradient, in page area coordinates, in points.

r2

r2: number

Gets or sets the radius of the outer circle that represents the ending point of the radial gradient, in page area coordinates, in points.

stops

Gets or sets an array of PdfGradientStop objects representing a color, offset and opacity within the brush's gradient axis. The default value is an empty array.

x1

x1: number

Gets or sets the X-coordinate of the inner circle's center that represents the starting point of the radial gradient, in page area coordinates, in points.

x2

x2: number

Gets or sets the X-coordinate of the outer circle's center that represents the ending point of the radial gradient, in page area coordinates, in points.

y1

y1: number

Gets or sets the Y-coordinate of the inner circle's center that represents the starting point of the radial gradient, in page area coordinates, in points.

y2

y2: number

Gets or sets the Y-coordinate of the outer circle's center that represents the ending point of the radial gradient, in page area coordinates, in points.

Methods

clone

equals