Table of Contents

Class XRadialGradientBrush

Namespace
PdfSharp.Drawing
Assembly
PdfSharp.dll

Defines a Brush with a radial gradient.

public sealed class XRadialGradientBrush : XGradientBrush
Inheritance
XRadialGradientBrush
Inherited Members

Constructors

XRadialGradientBrush(XPoint, XPoint, double, double, XColor, XColor)

Initializes a new instance of the XRadialGradientBrush class.

public XRadialGradientBrush(XPoint point1, XPoint point2, double innerRadius, double outerRadius, XColor color1, XColor color2)

Parameters

point1 XPoint
point2 XPoint
innerRadius double
outerRadius double
color1 XColor
color2 XColor

Properties

InnerRadius

Gets or sets the inner radius.

public double InnerRadius { get; set; }

Property Value

double

OuterRadius

Gets or sets the outer radius.

public double OuterRadius { get; set; }

Property Value

double

Transform

Gets or sets an XMatrix that defines a local geometric transform for this RadialGradientBrush.

public XMatrix Transform { get; set; }

Property Value

XMatrix

Methods

MultiplyTransform(XMatrix)

Multiply the brush transformation matrix with the specified matrix.

public void MultiplyTransform(XMatrix matrix)

Parameters

matrix XMatrix

MultiplyTransform(XMatrix, XMatrixOrder)

Multiply the brush transformation matrix with the specified matrix.

public void MultiplyTransform(XMatrix matrix, XMatrixOrder order)

Parameters

matrix XMatrix
order XMatrixOrder

ResetTransform()

Resets the brush transformation matrix with identity matrix.

public void ResetTransform()

RotateTransform(double)

Rotates the brush with the specified angle.

public void RotateTransform(double angle)

Parameters

angle double

RotateTransform(double, XMatrixOrder)

Rotates the brush with the specified angle.

public void RotateTransform(double angle, XMatrixOrder order)

Parameters

angle double
order XMatrixOrder

ScaleTransform(double, double)

Scales the brush with the specified scalars.

public void ScaleTransform(double sx, double sy)

Parameters

sx double
sy double

ScaleTransform(double, double, XMatrixOrder)

Scales the brush with the specified scalars.

public void ScaleTransform(double sx, double sy, XMatrixOrder order)

Parameters

sx double
sy double
order XMatrixOrder

TranslateTransform(double, double)

Translates the brush with the specified offset.

public void TranslateTransform(double dx, double dy)

Parameters

dx double
dy double

TranslateTransform(double, double, XMatrixOrder)

Translates the brush with the specified offset.

public void TranslateTransform(double dx, double dy, XMatrixOrder order)

Parameters

dx double
dy double
order XMatrixOrder