Hi,
You can do that using both GdViewer & Imaging classes.
The idea is:
- Load or create an empty image into an Imaging object
- Set the loaded image into the GdViewer object
- Code: Select all
GdViewer1.SetNativeImage(Imaging1.GetNativeImage)
- Catch mouse events from the GdViewer to see when the used clicked and when he moved the mouse
- Using the Imaging object, draw the desired shape using coordinates raised by the events of the GdViewer object
- Refresh the viewer -> see Redraw() method
I've uploaded a vb.net freehand drawing sample which use this technic:
http://www.gdpicture.com/support/dotnetFreehand.zipBest regards,
Loïc Carrère