文件名称:Manipulating-GDIP-Drawings-(VB)
- 所属分类:
- 书籍源码
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 20kb
- 下载次数:
- 0次
- 提 供 者:
- Nguyen ********
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
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.
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.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
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)
...............................\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)