|
-
August 23rd, 2006, 04:28 PM
#11
Simple Vector Drawing Application
Hi everybody!
A lot of days have passed while developing this vector drawing application.
Wizbang, If you are there, you had said right.. This is not a one week application. Studying lot of GDI+ examples, applying various logics, I am near to complete this application. Well, the application can now:
1) Draw lines, curves, ellipses, rectangles, polygons.
2) Store all these in Path collection.
3) Perform hit test.
4) Drag the object, Rotate the object, modify the nodes in curves by dragging,deleting, adding the nodes. Paths can be deleted and added.
5) Now comes the difficult task:
Scaling The Matrix.
Well, Scale method of the matrix takes horizontal scale factor and vertical scale factor. If we want to double the size of say rectangle in horizontal direction, we send a value of 2 to the scaleX factor. But I want to gradually increase the value from 1 to 2 depending on the dragging of RESIZING HANDLE using MouseMove event. The code is working perfect if I send the value 2 directly in MouseUp event. But when I send the gradual values using the MouseMove event, the scaling gets on doubled at each pixel difference.
Anybody out there who has worked out a similar problem while scaling objects in individual directions ?????
Keep smiling.
mahesh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|