PDFsharp-net6

XRadialGradientBrush

Namespace: PdfSharp.Drawing

Defines a Brush with a radial gradient.

public sealed class XRadialGradientBrush : XGradientBrush

Inheritance ObjectXBrushXGradientBrushXRadialGradientBrush

Properties

Transform

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

public XMatrix Transform { get; set; }

Property Value

XMatrix

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

ExtendLeft

Gets or sets a value indicating whether to extend the gradient beyond its bounds.

public bool ExtendLeft { get; set; }

Property Value

Boolean

ExtendRight

Gets or sets a value indicating whether to extend the gradient beyond its bounds.

public bool ExtendRight { get; set; }

Property Value

Boolean

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

Methods

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

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

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

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()