Exemplo n.º 1
0
        public void DrawText(string text, int x, int y, int size, Color color)
        {
            DrawingAction da = new DrawingAction();

            da.Command = DrawingActionCommands.Text;
            da.color   = color;
            da.startX  = x;
            da.startY  = y;
            da.text    = text;
            da.size    = size;

            drawingActions.Add(da);

            this.Invalidate();
        }
Exemplo n.º 2
0
        public void DrawCircle(int cx, int cy, int radius, Color color, int width)
        {
            DrawingAction da = new DrawingAction();

            da.Command = DrawingActionCommands.Circle;
            da.color   = color;
            da.startX  = cx;
            da.startY  = cy;
            da.radius  = radius;
            da.width   = width;

            drawingActions.Add(da);

            this.Invalidate();
        }
Exemplo n.º 3
0
        public void DrawLine(int startX, int startY, int endX, int endY, Color color, int width)
        {
            DrawingAction da = new DrawingAction();

            da.Command = DrawingActionCommands.Line;
            da.color   = color;
            da.startX  = startX;
            da.startY  = startY;
            da.endX    = endX;
            da.endY    = endY;
            da.width   = width;

            drawingActions.Add(da);

            this.Invalidate();
        }