DrawTools示例说明如何创建一个Windows窗体应用程序绘制图形…
代码说明:
DrawTools向你展示如何在Windows Form程序中通过鼠标拖动绘制各种图形对象,它实现的固定图形有:矩形框、椭圆、线性和铅笔。并且,你可以通过鼠标选择、移动、删除图形,还可以改变图形大小等各种操作。另外,程序支持你把绘制的图形保存成文件,可以直接把一个文件从资源管理器中拖到程序界面上打开。-DrawTools sample shows how to create a Windows Forms application for drawing graphic objects in a Windows client area using mouse and drawing tools. Drawing tools implemented in this sample are: Rectangle, Ellipse, Line, and Pencil. There are well-known techniques for creating such type of applications, like: interaction with mouse, flicker-free drawing, implementing of drawing and selection tools, objects selection, managing of objects Z-order etc. MFC developers may learn all this stuff from MFC sample DRAWCLI. DrawTools C# program reproduces some of DRAWCLI functionality and uses some design decisions from this sample.
下载说明:请别用迅雷下载,失败请重下,重下不扣分!