using System;
using System.Collections.Generic;
using System.Text;

namespace CommonUI.Display
{
    public static class GraphicsUtil
    {
        /*
        static public void DrawImageEllipse(Graphics g, Image image, float sx, float sy, float sw, float sh)
        {
            int density = Math.Max(32, 32);

            float[][] vertices = new float[density + 2][];
            for (int i = 0; i < vertices.Length; i++)
            {
                vertices[i] = new float[2];
            }

            float rx = sw / 2;
            float ry = sh / 2;
            float cx = sx + rx;
            float cy = sy + ry;

            vertices[0][0] = cx;
            vertices[0][1] = cy;
            float degree_start = 0;
            float degree_delta = (float)Math.PI * 2 / density;
            for (int i = 0; i < density; i++)
            {
                float idegree = degree_start + i * degree_delta;
                vertices[1 + i][0] = cx + (float)Math.Cos(idegree) * rx;
                vertices[1 + i][1] = cy + (float)Math.Sin(idegree) * ry;
            }
            vertices[density + 1][0] = vertices[0][0];
            vertices[density + 1][1] = vertices[0][1];

            g.beginImage(image);
            g.drawImagePolygon(vertices);
        }
        */
    }
}