Title:
Manipulating-GDIP-Drawings-(VB) Download
Description: The attached example solution contains two projects: the ShapeEditorLibrary, containing the basic shape editor classes, and the ShapeEditorExampleVs2008 project, containing the form you see in the screenshot, including the property grid + selection combobox logic. As you can see, this is separated from the ShapeEditorLibrary so you can implement it completely differently if you want.
The most important classes in the ShapeEditorLibrary are the Shape, Canvas and ShapeCollection classes.
The Shape class is an abstract class and implements most of the basic methods and properties that every Shape will have. In order to create your own Shapes, you can create a class that inherits Shape, and override the Draw method to provide your own drawing. If you want a Triangle shape, you implement the drawing such that it looks like a triangle. There is a RectangleShape and EllipseShape already included in the example so you can take a look how you do that.
To Search:
File list (Check if you may need any files):
Manipulating GDI+ Drawings (VB)\Manipulating GDI+ Drawings (VB).sln
...............................\Manipulating GDI+ Drawings (VB).suo
...............................\Wunnell.Drawing.GdiPlusManipulationDemo
...............................\.......................................\Form1.Designer.vb
...............................\.......................................\Form1.resx
...............................\.......................................\Form1.vb
...............................\.......................................\My Project
...............................\.......................................\..........\Application.Designer.vb
...............................\.......................................\..........\Application.myapp
...............................\.......................................\..........\AssemblyInfo.vb
...............................\.......................................\..........\Resources.Designer.vb
...............................\.......................................\..........\Resources.resx
...............................\.......................................\..........\Settings.Designer.vb
...............................\.......................................\..........\Settings.settings
...............................\.......................................\Wunnell.Drawing.GdiPlusManipulationDemo.vbproj
...............................\.......................................\Wunnell.Drawing.GdiPlusManipulationDemo.vbproj.user
Manipulating GDI+ Drawings (VB)