Creating a Shape Manipulation App in C#

  • Thread starter Thread starter Alejandro Serrano
  • Start date Start date
A

Alejandro Serrano

Hi, I need to create an app that would make possible to manipulate
shapes and lines as you can do in PowerPoint. Everything that it should
do would be:

- Create lines and be able to modify it
- Create curves / splines and then being able to change their control
points and/or create new control points on the fly
- Create polygons and being able to change the points position

Everything should be done just with the mouse.

I know how to use GDI+ to paint in the screen. I also know how to use it
to manipulate bitmaps. However, I can't find an usable solution to be
able to select the objects and move and change them.

Can anyone help me? Is there any code around there (I've tried looking
at Paint.NET's) that may help me? I tried creating controls for every
type of shape, but was not successful (but I may be doing it bad)

Thanks in advance,
Serras
 
Controls would not be a good way to approach the problem. Generally
speaking, you need to create a library of classes, each of which knows how
to draw itself and do hit testing.

There are free libraries out there that can do most of the work for you.

Regards,
Frank Hileman

check out VG.net: http://www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio .NET graphics editor
 
Back
Top