Ejemplo n.º 1
0
        public override void Draw(Graphics Graphics, Pen Pen, CanvasView View)
        {
            float R = (float)(Radius * View.Zoom);
            PointF C = View.TranslateF(Center);
            RectangleF RectangleF = new RectangleF(C.X - R, C.Y - R, 2 * R, 2 * R);

            Graphics.DrawArc(Pen, RectangleF,
                (float)(View.Translate(Center).Phi * 180 / Math.PI),
                -(View.Mirrow ? -1 : 1) * (float)(Alpha * 180 / Math.PI));
        }
Ejemplo n.º 2
0
        public RectangleF Border(CanvasView View, Pointer Start)
        {
            RectangleF RectangleF = new RectangleF(
                (float)View.Translate(Start).X, (float)View.Translate(Start).Y, 1, 1);

            foreach (SplintContour Contour in this)
            {
                Start = Contour.Finish(Start);
                RectangleF = BorderWall(RectangleF, View.Translate(Start).PointF);
            }
            return RectangleF;
        }