Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update README.md

  • Loading branch information...
commit 4929d53df27ae498e1be146a195c33a65247458e 1 parent 0a73d17
@romanroibu romanroibu authored
Showing with 58 additions and 0 deletions.
  1. +58 −0 lab#3/README.md
View
58 lab#3/README.md
@@ -0,0 +1,58 @@
+Windows Programming Laboratory Work #3
+======================================
+
+Title
+-----
+Basics of Working with Mouse. GDI Primitives. Bezier Curve.
+
+Contents
+--------
+- Mouse
+- Device context
+- GDI Primitives
+ - Line
+ - Curve
+ - Plane
+ - Bitmap image
+- Bezier curve
+
+Mandatory Objectives (completed)
+--------------------------------
+- Draw few lines of different colors and weights.
+- Draw a Bezier curve.
+- Draw few plane objects of different colors, weights, filled and not.
+- Draw 2 different objects using mouse.
+
+Objectives With Points (completed)
+----------------------------------
+- Draw a custom bitmap image. **(1 pt)**
+- Add a switch that will change mouse ability to draw objects. **(2 pt)**
+- Draw a Bezier curve using mouse. **(1 pt)**
+- Fill an object with a gradient. **(1 pt)**
+- Delete objects using mouse clicking. **(2 pt)**
+- Use mouse as an eraser of an adjustable width. **(2 pt)**
+
+Application Creation Steps
+--------------------------
+In the development process, I consulted the recommanded book (["Programming Windows, 5th Edition", by Charles Petzold](http://www.charlespetzold.com/pw5/)).
+Also, I found myself consulting the documentation on the [MSDN](http://msdn.microsoft.com) page very often.
+
+First of all, I made wireframe models of the application's window and dialogbox, with general layout and functionality, using the [MockFlow](http://mockflow.com/) tool.
+
+![Window Mockup](https://raw.github.com/TUM-FAF/WP-FAF-111-Roibu-Roman/master/lab%233/screens/mockup.png)
+
+Result Application
+------------------
+This is a screen shot of the application's window and dialogbox in the virtual Windows 8 environment:
+
+![Window screenshot](https://raw.github.com/TUM-FAF/WP-FAF-111-Roibu-Roman/master/lab%233/screens/screenshot.png)
+
+Conclusions
+-----------
+This laboratory work was an interesting one. I had the opportunity to buid an applications will a lot of basic drawing features, somewhat resembling the MS Paint application.
+
+The main difficulty I encountered was with limiting the allowed draing area, but I managed to solve this issue.
+
+In this laboratory work I familiarized myself with all the drawing posibilities the Windows API gives us, and with the right way of working with the mouse, and letting the user control the application features using mouse clicks.
+This laboratory work layed an important base ground for future laboratory works, especialy in working with animations.
+
Please sign in to comment.
Something went wrong with that request. Please try again.