public EllipticalGradient(IRgb[] colors, Styles.Drawing.PointF location) : base(colors)
 {
     Center = location;
     Type = GradientType.Ellipse;
 }
 public EllipticalGradient(IRgb[] colors, float locationX, float locationY) : base(colors)
 {
     Center = new Styles.Drawing.PointF(locationX, locationY);
     Type = GradientType.Ellipse;
 }
 public EllipticalGradient(IRgb[] colors) : base(colors)
 {
     Center = new Styles.Drawing.PointF(.5f, .5f);
     Type = GradientType.Ellipse;
 }
Esempio n. 4
0
 // Work around method while not working in bait and switch
 public void SetCenter(float x, float y)
 {
     this.Center = new Styles.Drawing.PointF(x, y);
 }
Esempio n. 5
0
 public RadialGradient(IRgb[] colors, Styles.Drawing.PointF location) : base(colors)
 {
     Center = location;
     Type   = GradientType.Radial;
 }
Esempio n. 6
0
 public RadialGradient(IRgb[] colors) : base(colors)
 {
     Center = new PointF(0, 0);
     Type   = GradientType.Radial;
 }