Для роботи з графікою використовується клас Graphics з простору імен System.Drawing.
Graphics g = this.CreateGraphics();Bitmap buf = new Bitmap(pictureBox1.Width, pictureBox1.Height);
Graphics g = Graphics.FromImage(buf);protected override void OnPaint(PaintEventArgs e) {
e.Graphics.DrawRectangle(new Pen(Color.Blue), 10, 10, 100, 50);
}

HatchBrush brush = new HatchBrush(
HatchStyle.DiagonalCross,
Color.Red,
Color.Yellow);
e.Graphics.FillEllipse(brush, 50, 50, 150, 100);

| Варіант | Завдання | Складність |
|---|---|---|
| 1 | Намалювати заповнений прямокутник | ★☆☆ |
| 1 | ||
| 2 | ||
| 3 | ||
| 4 | ||
| 5 | ||
| 6 | ||
| 7 | ||
| 8 | ||
| 9 | ||
| 10 | ||
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | ||
| 15 | ||
| 16 | ||
| 17 |