예제 #1
0
        /// <summary>
        /// Draws a circle filled.
        /// </summary>
        public void DrawFilled(C2DCircle Circle, Graphics graphics, Brush brush)
        {
            C2DRect Rect = new C2DRect();

            Circle.GetBoundingRect(Rect);
            this.ScaleAndOffSet(Rect.BottomRight);
            this.ScaleAndOffSet(Rect.TopLeft);

            graphics.FillEllipse(brush, (int)Rect.TopLeft.x, (int)Rect.BottomRight.y, (int)Rect.Width(), (int)Rect.Height());
        }
예제 #2
0
        /// <summary>
        /// Draws a circle
        /// </summary>
        public void Draw(C2DCircle Circle, Graphics graphics, Pen pen)
        {
            C2DRect Rect = new  C2DRect();

            Circle.GetBoundingRect(Rect);
            this.ScaleAndOffSet(Rect.BottomRight);
            this.ScaleAndOffSet(Rect.TopLeft);

            graphics.DrawEllipse(pen, (int)Rect.TopLeft.x, (int)Rect.BottomRight.y, (int)Rect.Width(), (int)Rect.Height());
        }
예제 #3
0
        /// <summary>
        /// Draws a circle filled.
        /// </summary>
        public void DrawFilled(C2DCircle Circle, Graphics graphics, Brush brush)
        {
            C2DRect Rect = new C2DRect();
            Circle.GetBoundingRect(Rect);
            this.ScaleAndOffSet(Rect.BottomRight);
            this.ScaleAndOffSet(Rect.TopLeft);

            graphics.FillEllipse(brush, (int)Rect.TopLeft.x, (int)Rect.BottomRight.y, (int)Rect.Width(), (int)Rect.Height());
        }
예제 #4
0
        /// <summary>
        /// Draws a circle
        /// </summary>
        public void Draw(C2DCircle Circle, Graphics graphics, Pen pen)
        {
            C2DRect Rect = new  C2DRect();
            Circle.GetBoundingRect(Rect);
            this.ScaleAndOffSet(Rect.BottomRight);
            this.ScaleAndOffSet(Rect.TopLeft);

            graphics.DrawEllipse(pen, (int)Rect.TopLeft.x, (int)Rect.BottomRight.y, (int)Rect.Width(), (int)Rect.Height());
        }