Namespace: PdfSharp.Drawing
Defines a Brush with a linear gradient.
public sealed class XLinearGradientBrush : XGradientBrush
Inheritance Object → XBrush → XGradientBrush → XLinearGradientBrush
Gets or sets an XMatrix that defines a local geometric transform for this LinearGradientBrush.
public XMatrix Transform { 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 XLinearGradientBrush class.
public XLinearGradientBrush(XPoint point1, XPoint point2, XColor color1, XColor color2)
point1
XPoint
point2
XPoint
color1
XColor
color2
XColor
Initializes a new instance of the XLinearGradientBrush class.
public XLinearGradientBrush(XRect rect, XColor color1, XColor color2, XLinearGradientMode linearGradientMode)
rect
XRect
color1
XColor
color2
XColor
linearGradientMode
XLinearGradientMode
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()