paint program!
hi
i am working in a paint program...........using gdi+...and i can make lines and rectangle with the mouse like the example in the book of graphic programming with gdi+ chapter 3,4
the problem is that i wanna add the ability to select the shapes i draw by the mouse and resize them with the mouse too...like in macromedia flash ...also to make things linke group and ungroup
also i wanna make undo and redo..........for drawings
how can i make this?
thanks for your help
Mahesh ChandPosted Jul 19, 2005, 3:45 PM
do this, you may want to create an array of objects, which stores objects (including size, location, z-order etc) and when you click, you need to figure out what image was selected. After that you can change image by adding selection or soemthing and on mouse move you have to move the selected
image as well.
Hope it helps.
JoshPosted Jul 19, 2005, 11:16 AM
http://www.eecs.wsu.edu/paint.net/
It's under the MIT license so you should be able to see the source code and learn all kinds of cool things.
gos_meniaPosted Jun 25, 2004, 10:03 PM
gos_meniaPosted Jun 25, 2004, 9:59 PM
xxdneuPosted Jun 7, 2004, 1:18 PM
asicPosted Apr 27, 2004, 7:40 AM
asicPosted Apr 21, 2004, 4:56 PM
Mahesh ChandPosted Apr 21, 2004, 1:41 PM