文件名称:KpImageViewerV2_151_src
- 所属分类:
- 书籍源码
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 54kb
- 下载次数:
- 1次
- 提 供 者:
- 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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Properties
..........\AssemblyInfo.cs
..........\Resources.Designer.cs
..........\Resources.resx
Resources
.........\btnBack.png
.........\btnDrag.png
.........\btnFitToScreen.png
.........\btnNext.png
.........\btnOpen.png
.........\btnPreview.png
.........\btnRotate270.png
.........\btnRotate90.png
.........\btnSelect.png
.........\btnZoomIn.png
.........\btnZoomOut.png
.........\Drag.cur
.........\Grab.cur
.........\Thumbs.db
GifImage.cs
KP-DrawEngine.cs
KP-DrawObject.cs
KP-ImageViewerV2.cs
KP-ImageViewerV2.csproj
KP-ImageViewerV2.csproj.user
KP-ImageViewerV2.Designer.cs
KP-ImageViewerV2.resx
KP-ImageViewerV2.sln
KP-ImageViewerV2.suo
MultiPageImage.cs
PanelDoubleBuffered.cs
..........\AssemblyInfo.cs
..........\Resources.Designer.cs
..........\Resources.resx
Resources
.........\btnBack.png
.........\btnDrag.png
.........\btnFitToScreen.png
.........\btnNext.png
.........\btnOpen.png
.........\btnPreview.png
.........\btnRotate270.png
.........\btnRotate90.png
.........\btnSelect.png
.........\btnZoomIn.png
.........\btnZoomOut.png
.........\Drag.cur
.........\Grab.cur
.........\Thumbs.db
GifImage.cs
KP-DrawEngine.cs
KP-DrawObject.cs
KP-ImageViewerV2.cs
KP-ImageViewerV2.csproj
KP-ImageViewerV2.csproj.user
KP-ImageViewerV2.Designer.cs
KP-ImageViewerV2.resx
KP-ImageViewerV2.sln
KP-ImageViewerV2.suo
MultiPageImage.cs
PanelDoubleBuffered.cs