Exemplo n.º 1
0
        private void ImageDrawingShape(ImageDrawing id)
        {
            id.DrawLine(Color.Red, 0, 0, 8, 8);
            id.DrawRectangle(Color.Red, 8, 8, 4, 4);
            id.DrawRectangle(Color.Red, 16.5f, 16.5f, 4f, 4f);

            var text = tbxExample.Text;
            var font = (IFont)cbxFont.SelectedValue;

            id.DrawString(text, font, Color.Blue, 50, 50);
            id.DrawString(text, font, Color.Blue, 200, 200, Color.Yellow);

            for (int i = 0; i < 100; i += 5)
            {
                id.DrawPixel(Color.Yellow, 150 + i, 150);
            }
        }