Basics of Working with Mouse. GDI Primitives. Bezier Curve.
- Mouse
- Device context
- GDI Primitives
- Line
- Curve
- Plane
- Bitmap image
- Bezier curve
- for Basic Level (grade 5 || 6) you should be able to:
- Draw 5 lines of different colors and weights
- Draw 2 Bezier curves
- Draw 4 plane objects (ex. circle, square, pie, polygon...) of different colors, weights, filled and not
- Draw 2 different objects using mouse
- for Normal Level (grade 7 || 8) you should be able to:
- Realize the tasks from Basic Level.
- Draw a custom bitmap image
- Fill 2 object with gradient
- Hook keyboard input. Add 2 different keyboard combinations that will change mouse ability to draw objects (ex. on Ctrl+C will draw circles, on Alt+R will continue to draw circles but of read color)
- Draw a Bezier curve using mouse
- for Advanced Level (grade 9 || 10) you should be able to:
- Realize the tasks from Normal Level.
- Zoom in and out application working area using keyboard or mouse wheel
- Use mouse as an eraser (choose 1 option):
- delete objects using mouse clicking
- eraser of a fixed width
- eraser with adjustable width
- for Bonus Point Tasks :
- Realize the task with mouse eraser for all 3 cases listed above. In order to choose one of them, add 3 buttons/icons or check boxes.
- Programming Windows by Charlez Petzold, 5th edition:
- Section I, Chapter 5
- Section I, Chapter 7
- http://www.functionx.com/win32/