/// <summary> /// Creates an XColor structure from the specified alpha value and color. /// </summary> public static XColor FromArgb(int alpha, XColor color) { color.A = ((byte)alpha) / 255.0; return(color); }
/// <summary> /// Initializes a new instance of the <see cref="XPen"/> class. /// </summary> public XPen(XColor color) : this(color, 1, false) { }
/// <summary> /// Initializes a new instance of the <see cref="XPen"/> class. /// </summary> public XPen(XColor color, double width) : this(color, width, false) { }
/// <summary> /// Initializes a new instance of the <see cref="XLinearGradientBrush"/> class. /// </summary> public XLinearGradientBrush(PointF point1, PointF point2, XColor color1, XColor color2) : this(new XPoint(point1), new XPoint(point2), color1, color2) { }
//internal XLinearGradientBrush(); #if GDI /// <summary> /// Initializes a new instance of the <see cref="XLinearGradientBrush"/> class. /// </summary> public XLinearGradientBrush(System.Drawing.Point point1, System.Drawing.Point point2, XColor color1, XColor color2) : this(new XPoint(point1), new XPoint(point2), color1, color2) { }
/// <summary> /// Initializes a new instance of the <see cref="XLinearGradientBrush"/> class. /// </summary> public XLinearGradientBrush(Rect rect, XColor color1, XColor color2, XLinearGradientMode linearGradientMode) : this(new XRect(rect), color1, color2, linearGradientMode) { }
internal XSolidBrush(XColor color, bool immutable) { _color = color; _immutable = immutable; }
/// <summary> /// Initializes a new instance of the <see cref="XSolidBrush"/> class. /// </summary> public XSolidBrush(XColor color) : this(color, false) { }