Exemplo n.º 1
0
        public void DrawEllipse(float x, float y, float width, float height, System.Drawing.Color clr)
        {
            SharpDX.Mathematics.Interop.RawVector2 center = new SharpDX.Mathematics.Interop.RawVector2(x, y);
            SharpDX.Direct2D1.SolidColorBrush      brush  = new SharpDX.Direct2D1.SolidColorBrush(d2dRenderTarget, ToColor(clr));
            SharpDX.Direct2D1.Ellipse ellipse             = new SharpDX.Direct2D1.Ellipse(center, width, height);
            d2dRenderTarget.DrawEllipse(ellipse, brush);

            brush.Dispose();
        }