/// <summary>
 /// Initializes a new instance of the <see cref="XLinearGradientBrush"/> class.
 /// </summary>
 public XLinearGradientBrush(XPoint point1, XPoint point2, XColor color1, XColor color2) : base(color1, color2)
 {
     _point1 = point1;
     _point2 = point2;
 }
        //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(PointF point1, PointF point2, XColor color1, XColor color2)
     : this(new XPoint(point1), new XPoint(point2), color1, color2)
 {
 }
Exemple #4
0
 /// <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(Rect rect, XColor color1, XColor color2, XLinearGradientMode linearGradientMode)
     : this(new XRect(rect), color1, color2, linearGradientMode)
 {
 }
Exemple #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XRadialGradientBrush"/> class.
 /// </summary>
 public XRadialGradientBrush(XPoint center, double r1, double r2, XColor color1, XColor color2) : base(color1, color2)
 {
     _center1 = center;
     _center2 = center;
     _r1      = r1;
     _r2      = r2;
 }
Exemple #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XPen"/> class.
 /// </summary>
 public XPen(XColor color)
     : this(color, 1, false)
 {
 }
Exemple #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XRadialGradientBrush"/> class.
 /// </summary>
 public XRadialGradientBrush(SysPoint center1, SysPoint center2, double r1, double r2, XColor color1, XColor color2)
     : this(new XPoint(center1), mew XPoint(center2), r1, r2, color1, color2)
Exemple #9
0
        //internal XRadialGradientBrush();

#if GDI
        /// <summary>
        /// Initializes a new instance of the <see cref="XRadialGradientBrush"/> class.
        /// </summary>
        public XRadialGradientBrush(System.Drawing.Point center1, System.Drawing.Point center2, double r1, double r2, XColor color1, XColor color2)
            : this(new XPoint(center1), new XPoint(center2), r1, r2, color1, color2)
        {
        }
 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)
 {
 }
Exemple #12
0
 protected XBaseGradientBrush(XColor color1, XColor color2)
 {
     _color1 = color1;
     _color2 = color2;
 }