Click to See Complete Forum and Search --> : Need advise - How to write a drawing program


moroshko
December 30th, 2009, 04:43 AM
Hi,

I would like to write a program that enable user to draw geometric shapes like circles, triangles, rectangles and so on.
I would like also to be able to drag and drop or resize a shape that was previously drawn.

1) I thought to draw the shapes inside a Panel. Does it seems reasonable ?
2) Say I drew several shapes. Then I want to resize the first drawn shape. How can I identify that the first shape was clicked ?

Thanks !

rocky_upadhaya
December 30th, 2009, 06:02 AM
Hello! I am also new to this csharp. I pearsonally cannot help you but I can suggest you to go to
http://www.deitel.com/Books/VisualC2005HowtoProgram2e/tabid/1706/Default.aspx
here download the Code examples into Your computer. There Are tons of useful example Programs Project including drawing and shapes. You just go through all the examples at least once and this will surely help you....

moroshko
December 30th, 2009, 09:12 AM
Hi,
I do have some experience with drawing graphics in GDI+.
At this point I just want to understand the idea of resizing a circle for example.
After I draw a circle, it becomes a part of a Bitmap. Of course, I do save circle's details in some other object.
But what I don't understand is how to implement the following:
when the mouse is over the circle, the circle is chosen, and then using some key enables the user to resize/move it.

pmatah
December 30th, 2009, 10:46 AM
Not sure which technology you are playing with, but have you looked at Silverlight? For the browser you can play with the InkPresenter, here is more info on that:
http://msdn.microsoft.com/en-us/magazine/cc721604.aspx

and here are a couple of links i think you will also find interesting:
http://stackoverflow.com/questions/1980741/need-advise-how-to-write-a-drawing-program

http://social.msdn.microsoft.com/Forums/en/smallbasic/thread/68019412-02c0-43be-a667-8fff11b4139c

Hope that helps!
Parul
[MSAE]