基本信息
源码名称:C# 画图工具
源码大小:96.08M
文件格式:.zip
开发语言:C#
更新时间:2020-02-10
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 5 元 
   源码介绍
这个小程序是用c#语言和Visual Studio 2017软件编写的,软件的主要用途是绘制线条和图形。应用程序的内部主要由一些图片框、按钮、标签和一些其他控件组成。所有的功能都在一个表单中实现

/// <Stack>

/// Publicly represents a variable-size last-in, first-out (LOFT) set,

/// using Bitmap to process image pixels for recall and redo functions

/// </Bitmap>

public Stack<Bitmap> Undo, Redo;

 

List<string> ls = new List<string> (); // The full path used to store music files

List<Point> pList = new List<Point> (); // The path used to store the brushes, the graphics

 

// Dtermine the coordinate when mouse down for picLocationX, picLocationY, picLocationX_Y.

int xPos, yPos, xPos1, yPos1, xPos2, yPos2;

 

int Px, Py; // Determine the new picDrawArea's Size

bool sizeFlag; // Bool sizeFlag to deal the control's event of picLocationY

bool sizeFlag1; //Bool sizeFlag1 to deal the control's event of picLocationX

bool sizeFlag2; //Bool sizeFlag2 to deal the control's event of picLocationX_Y

bool flag = false; //start drawing or not

 

// Represents a small rectangular pop-up window for storing controls and instructions

ToolTip toolTip1 = new ToolTip ();

 

Pen pen; // Defines objects for drawing lines, curves and other shapes

Point beginPt, endPt; //Definition the Point of begin and end when drawig

Graphics g, g2; // Encapsulate a GUI drawing surface, respectively is g, g2

S

// Store the shape into image, and draw the trace drawing into image2

Image image, image2;

 

int type; // int type to select the different of drawing

 

// A brush that defines a color to fill the shape and path of the graphic

SolidBrush brush;