Ejemplo n.º 1
0
        public void DrawRectangle(FLOAT x, FLOAT y, FLOAT w, FLOAT h, D2DColor color, FLOAT strokeWidth = 1,
                                  D2DDashStyle dashStyle = D2DDashStyle.Solid)
        {
            D2DRect rect = new D2DRect(x, y, w, h);

            D2D.DrawRectangle(this.Handle, ref rect, color, strokeWidth, dashStyle);
        }
Ejemplo n.º 2
0
 public void DrawRectangle(D2DRect rect, D2DColor color, FLOAT strokeWidth = 1,
                           D2DDashStyle dashStyle = D2DDashStyle.Solid)
 {
     D2D.DrawRectangle(this.Handle, ref rect, color, strokeWidth, dashStyle);
 }