CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2009
    Posts
    15

    Need advise - How to write a drawing program

    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 !

  2. #2
    Join Date
    Dec 2009
    Location
    Kathmandu,Nepal
    Posts
    168

    Thumbs up Re: Need advise - How to write a drawing program

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

  3. #3
    Join Date
    Dec 2009
    Posts
    15

    Re: Need advise - How to write a drawing program

    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.

  4. #4
    Join Date
    Jan 2009
    Posts
    12

    Re: Need advise - How to write a drawing program

    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/1...rawing-program

    http://social.msdn.microsoft.com/For...7-8fff11b4139c

    Hope that helps!
    Parul
    [MSAE]

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured