Beispiel #1
0
        public void DrawEllipse(Brush brush, Pen pen, int x, int y, int xRadius, int yRadius)
        {
            VerifyAccess();

            // Fill
            //
            if (brush != null)
            {
                brush.RenderEllipse(_bitmap, pen, _x + x, _y + y, xRadius, yRadius);
            }

            // Pen
            else if (pen != null && pen.Thickness > 0)
            {
                _bitmap.DrawEllipse(pen.Color, pen.Thickness, _x + x, _y + y, xRadius, yRadius,
                                    (Color)0x0, 0, 0, (Color)0x0, 0, 0, 0);
            }
        }
        public void DrawEllipse(Brush brush, Pen pen, int x, int y, int xRadius, int yRadius)
        {
            VerifyAccess();

            // Fill
            //
            if (brush != null)
            {
                brush.RenderEllipse(_bitmap, pen, _x + x, _y + y, xRadius, yRadius);
            }

            // Pen
            else if (pen != null && pen.Thickness > 0)
            {
                _bitmap.DrawEllipse(pen.Color, pen.Thickness, _x + x, _y + y, xRadius, yRadius,
                    (Color)0x0, 0, 0, (Color)0x0, 0, 0, 0);
            }

        }