C# Class AvgCutImage.FmMain

Inheritance: System.Windows.Forms.Form
Show file Open project: xxcanghai/AvgCutImage

Public Methods

Method Description
FmMain ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

清理所有正在使用的资源。

Private Methods

Method Description
CreateAvgCutRectangle ( int imgWidth, int imgHeight, int cutRowsNum, int cutCellsNum ) : List

根据原始图像大小和要切割的数量创建切割分块合集

CutImage ( string srcImagePath, int srcX, int srcY, int srcWidth, int srcHeight, string dstImagePath ) : void

把原始图片按照指定的分块切割并保存到目标路径中

FmMain_DragDrop ( object sender, DragEventArgs e ) : void
FmMain_DragEnter ( object sender, DragEventArgs e ) : void
InitializeComponent ( ) : void

设计器支持所需的方法 - 不要 使用代码编辑器修改此方法的内容。

NumToNostring ( int num ) : string

把数值转换成等长字符串,前加0

btCut_Click ( object sender, EventArgs e ) : void
btSelectImage_Click ( object sender, EventArgs e ) : void
pictureBox1_Click ( object sender, EventArgs e ) : void
tbImagePath_Click ( object sender, EventArgs e ) : void

Method Details

Dispose() protected method

清理所有正在使用的资源。
protected Dispose ( bool disposing ) : void
disposing bool 如果应释放托管资源,为 true;否则为 false。
return void

FmMain() public method

public FmMain ( ) : System
return System