Skip to content

Latest commit

 

History

History
43 lines (39 loc) · 1.68 KB

WP_LAB#3.md

File metadata and controls

43 lines (39 loc) · 1.68 KB

Windows Programming Laboratory Work #3

Initial version

Title

Basics of Working with Mouse. GDI Primitives. Bezier Curve.

Contents

  • Mouse
  • Device context
  • GDI Primitives
    • Line
    • Curve
    • Plane
    • Bitmap image
  • Bezier curve

Laboratory work Requirements:

  • 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.

References