public override void FillRoundRectangle(double left, double bottom, double right, double top, double radius)
 {
     if (roundRect == null)
     {
         roundRect = new PixelFarm.Agg.VertexSource.RoundedRect(left, bottom, right, top, radius);
         roundRect.NormalizeRadius();
     }
     else
     {
         roundRect.SetRect(left, bottom, right, top);
         roundRect.SetRadius(radius);
         roundRect.NormalizeRadius();
     }
     this.Fill(roundRect.MakeVxs());
 }
Example #2
0
        public override void DrawRoundRect(double left, double bottom, double right, double top, double radius)
        {
            if (roundRect == null)
            {
                roundRect = new PixelFarm.Agg.VertexSource.RoundedRect(left, bottom, right, top, radius);
                roundRect.NormalizeRadius();
            }
            else
            {
                roundRect.SetRect(left, bottom, right, top);
                roundRect.SetRadius(radius);
                roundRect.NormalizeRadius();
            }

            var v1 = GetFreeVxs();

            this.Draw(roundRect.MakeVxs(v1));
            ReleaseVxs(ref v1);
        }
 public override void FillRoundRectangle(double left, double bottom, double right, double top, double radius)
 {
     if (roundRect == null)
     {
         roundRect = new PixelFarm.Agg.VertexSource.RoundedRect(left, bottom, right, top, radius);
         roundRect.NormalizeRadius();
     }
     else
     {
         roundRect.SetRect(left, bottom, right, top);
         roundRect.SetRadius(radius);
         roundRect.NormalizeRadius();
     }
     var v1 = GetFreeVxs();
     this.Fill(roundRect.MakeVxs(v1));
     ReleaseVxs(ref v1);
 }