English
Topic 4. Working with graphics using Windows Forms and GDI+
Goal: become familiar with the GDI+ subsystem and the Windows Forms window repainting model; learn to draw shapes, text, and images with pens and brushes, use coordinate transformations, GraphicsPath outlines, and double buffering; master mouse handling, saving drawings as PNG, printing, and creating custom controls.
Lecture contents
- The Paint event, colors, and pens — GDI+ and the Paint event · The coordinate system and colors · Pens, brushes, and releasing resources
- Shapes, text, and transformations — Shapes · Text · Coordinate transformations · Compound shapes: GraphicsPath and Region
- Animation and drawing with the mouse — Animation and double buffering · Interactive drawing with the mouse
- Images, printing, and custom controls — Images, export, and printing · A custom control
- Common mistakes — Common mistakes