Class XLinearGradientBrush
Defines a Brush with a linear gradient.
public sealed class XLinearGradientBrush : XGradientBrush
- Inheritance
-
XLinearGradientBrush
- Inherited Members
Constructors
XLinearGradientBrush(XPoint, XPoint, XColor, XColor)
Initializes a new instance of the XLinearGradientBrush class.
public XLinearGradientBrush(XPoint point1, XPoint point2, XColor color1, XColor color2)
Parameters
XLinearGradientBrush(XRect, XColor, XColor, XLinearGradientMode)
Initializes a new instance of the XLinearGradientBrush class.
public XLinearGradientBrush(XRect rect, XColor color1, XColor color2, XLinearGradientMode linearGradientMode)
Parameters
rectXRectcolor1XColorcolor2XColorlinearGradientModeXLinearGradientMode
XLinearGradientBrush(Point, Point, XColor, XColor)
Initializes a new instance of the XLinearGradientBrush class.
public XLinearGradientBrush(Point point1, Point point2, XColor color1, XColor color2)
Parameters
XLinearGradientBrush(PointF, PointF, XColor, XColor)
Initializes a new instance of the XLinearGradientBrush class.
public XLinearGradientBrush(PointF point1, PointF point2, XColor color1, XColor color2)
Parameters
XLinearGradientBrush(Rectangle, XColor, XColor, XLinearGradientMode)
Initializes a new instance of the XLinearGradientBrush class.
public XLinearGradientBrush(Rectangle rect, XColor color1, XColor color2, XLinearGradientMode linearGradientMode)
Parameters
rectRectanglecolor1XColorcolor2XColorlinearGradientModeXLinearGradientMode
XLinearGradientBrush(RectangleF, XColor, XColor, XLinearGradientMode)
Initializes a new instance of the XLinearGradientBrush class.
public XLinearGradientBrush(RectangleF rect, XColor color1, XColor color2, XLinearGradientMode linearGradientMode)
Parameters
rectRectangleFcolor1XColorcolor2XColorlinearGradientModeXLinearGradientMode
Properties
Transform
Gets or sets an XMatrix that defines a local geometric transform for this LinearGradientBrush.
public XMatrix Transform { get; set; }
Property Value
Methods
MultiplyTransform(XMatrix)
Multiply the brush transformation matrix with the specified matrix.
public void MultiplyTransform(XMatrix matrix)
Parameters
matrixXMatrix
MultiplyTransform(XMatrix, XMatrixOrder)
Multiply the brush transformation matrix with the specified matrix.
public void MultiplyTransform(XMatrix matrix, XMatrixOrder order)
Parameters
matrixXMatrixorderXMatrixOrder
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
angledouble
RotateTransform(double, XMatrixOrder)
Rotates the brush with the specified angle.
public void RotateTransform(double angle, XMatrixOrder order)
Parameters
angledoubleorderXMatrixOrder
ScaleTransform(double, double)
Scales the brush with the specified scalars.
public void ScaleTransform(double sx, double sy)
Parameters
ScaleTransform(double, double, XMatrixOrder)
Scales the brush with the specified scalars.
public void ScaleTransform(double sx, double sy, XMatrixOrder order)
Parameters
sxdoublesydoubleorderXMatrixOrder
TranslateTransform(double, double)
Translates the brush with the specified offset.
public void TranslateTransform(double dx, double dy)
Parameters
TranslateTransform(double, double, XMatrixOrder)
Translates the brush with the specified offset.
public void TranslateTransform(double dx, double dy, XMatrixOrder order)
Parameters
dxdoubledydoubleorderXMatrixOrder