Namespace: PdfSharp.Drawing
Defines a Brush with a radial gradient.
public sealed class XRadialGradientBrush : XGradientBrush
Inheritance Object → XBrush → XGradientBrush → XRadialGradientBrush
Gets or sets an XMatrix that defines a local geometric transform for this RadialGradientBrush.
public XMatrix Transform { get; set; }
Gets or sets the inner radius.
public double InnerRadius { get; set; }
Gets or sets the outer radius.
public double OuterRadius { get; set; }
Gets or sets a value indicating whether to extend the gradient beyond its bounds.
public bool ExtendLeft { get; set; }
Gets or sets a value indicating whether to extend the gradient beyond its bounds.
public bool ExtendRight { get; set; }
Initializes a new instance of the XRadialGradientBrush class.
public XRadialGradientBrush(XPoint point1, XPoint point2, double innerRadius, double outerRadius, XColor color1, XColor color2)
point1 XPoint
point2 XPoint
innerRadius Double
outerRadius Double
color1 XColor
color2 XColor
Translates the brush with the specified offset.
public void TranslateTransform(double dx, double dy)
dx Double
dy Double
Translates the brush with the specified offset.
public void TranslateTransform(double dx, double dy, XMatrixOrder order)
dx Double
dy Double
order XMatrixOrder
Scales the brush with the specified scalars.
public void ScaleTransform(double sx, double sy)
sx Double
sy Double
Scales the brush with the specified scalars.
public void ScaleTransform(double sx, double sy, XMatrixOrder order)
sx Double
sy Double
order XMatrixOrder
Rotates the brush with the specified angle.
public void RotateTransform(double angle)
angle Double
Rotates the brush with the specified angle.
public void RotateTransform(double angle, XMatrixOrder order)
angle Double
order XMatrixOrder
Multiply the brush transformation matrix with the specified matrix.
public void MultiplyTransform(XMatrix matrix)
matrix XMatrix
Multiply the brush transformation matrix with the specified matrix.
public void MultiplyTransform(XMatrix matrix, XMatrixOrder order)
matrix XMatrix
order XMatrixOrder
Resets the brush transformation matrix with identity matrix.
public void ResetTransform()