- ·上一篇内容:使用c#生成随机数总结
- ·下一篇内容:pictureBox1的Image属性获得图片路径的三种方法
使用C#批量生成缩略图的工具源代码
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容.
/// </summary>
private void
InitializeComponent( )
{
this.linkLabel1 = new System.Windows.Forms.LinkLabel( );
this.linkLabel2 = new System.Windows.Forms.LinkLabel( );
this.path1 = new System.Windows.Forms.TextBox( );
this.path2 = new System.Windows.Forms.TextBox( );
this.width = new System.Windows.Forms.TextBox( );
this.height = new System.Windows.Forms.TextBox( );
this.listView1 = new System.Windows.Forms.ListView( );
this.linkLabel3 = new System.Windows.Forms.LinkLabel( );
this.linkLabel4 = new System.Windows.Forms.LinkLabel( );
this.columnHeader1 = new System.Windows.Forms.ColumnHeader( );
this.columnHeader2 = new System.Windows.Forms.ColumnHeader( );
this.columnHeader3 = new System.Windows.Forms.ColumnHeader( );
this.columnHeader4 = new System.Windows.Forms.ColumnHeader( );
this.columnHeader5 = new System.Windows.Forms.ColumnHeader( );
this.columnHeader6 = new System.Windows.Forms.ColumnHeader( );
this.SuspendLayout( );
//
// linkLabel1
//
this.linkLabel1.Location = new System.Drawing.Po
int( 456, 16 );
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size( 32, 16 );
this.linkLabel1.TabIndex = 0;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "浏览";
this.linkLabel1.LinkClicked = new System.Windows.Forms.LinkLabelLinkClickedEventHandler( this.linkLabel1_LinkClicked );
//
// linkLabel2
//
this.linkLabel2.Location = new System.Drawing.Po
int( 456, 48 );
this.linkLabel2.Name = "linkLabel2";
this.linkLabel2.Size = new System.Drawing.Size( 32, 16 );
this.linkLabel2.TabIndex = 1;
this.linkLabel2.TabStop = true;
this.linkLabel2.Text = "浏览";
this.linkLabel2.LinkClicked = new System.Windows.Forms.LinkLabelLinkClickedEventHandler( this.linkLabel2_LinkClicked );
//
// path1
//
this.path1.Location = new System.Drawing.Po
int( 16, 16 );
this.path1.Name = "path1";
this.path1.Size = new System.Drawing.Size( 432, 21 );
this.path1.TabIndex = 2;
this.path1.Text = "";
//
// path2
//
this.path2.Location = new System.Drawing.Po
int( 16, 48 );
this.path2.Name = "path2";
this.path2.Size = new System.Drawing.Size( 432, 21 );
this.path2.TabIndex = 3;
this.path2.Text = "";
//
// width
//
this.width.Location = new System.Drawing.Po
int( 80, 80 );
this.width.Name = "width";
this.width.Size = new System.Drawing.Size( 72, 21 );
this.width.TabIndex = 4;
this.width.Text = "";
//
// height
//
this.height.Location = new System.Drawing.Po
int( 216, 80 );
this.height.Name = "height";
this.height.Size = new System.Drawing.Size( 72, 21 );
this.height.TabIndex = 5;
this.height.Text = "";
//
// listView1
//
this.listView1.Columns.AddRange( new System.Windows.Forms.ColumnHeader[]
{
this.columnHeader1,
this.columnHeader2,
this.columnHeader3,
this.columnHeader4,
this.columnHeader5,
this.columnHeader6
}
);
this.listView1.Location = new System.Drawing.Po
int( 16, 112 );
this.listView1.Name = "listView1";
this.listView1.Size = new System.Drawing.Size( 472, 152 );
this.listView1.TabIndex = 6;
this.listView1.View = System.Windows.Forms.View.Details;
//
// linkLabel3
//
this.linkLabel3.Location = new System.Drawing.Po
int( 304, 80 );
this.linkLabel3.Name = "linkLabel3";
this.linkLabel3.Size = new System.Drawing.Size( 32, 16 );
this.linkLabel3.TabIndex = 7;
this.linkLabel3.TabStop = true;
this.linkLabel3.Text = "添加";
this.linkLabel3.LinkClicked = new System.Windows.Forms.LinkLabelLinkClickedEventHandler( this.linkLabel3_LinkClicked );
//
// linkLabel4
//
this.linkLabel4.Location = new System.Drawing.Po
int( 376, 80 );
this.linkLabel4.Name = "linkLabel4";
this.linkLabel4.Size = new System.Drawing.Size( 32, 16 );
this.linkLabel4.TabIndex = 8;
this.linkLabel4.TabStop = true;
this.linkLabel4.Text = "开始";
this.linkLabel4.LinkClicked = new System.Windows.Forms.LinkLabelLinkClickedEventHandler( this.linkLabel4_LinkClicked );
//
// columnHeader1
//
this.columnHeader1.Text = "源";
this.columnHeader1.Width = 122;
//
// columnHeader2
//
this.columnHeader2.Text = "目的";
this.columnHeader2.Width = 121;
//
// columnHeader3
//
this.columnHeader3.Text = "宽";
this.columnHeader3.Width = 49;
//
// columnHeader4
//
this.columnHeader4.Text = "高";
this.columnHeader4.Width = 42;
//
// columnHeader5
//
this.columnHeader5.Text = "文件数";
//
// columnHeader6
//
this.columnHeader6.Text = "完成数";
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size( 6, 14 );
this.ClientSize = new System.Drawing.Size( 504, 294 );
this.Controls.Add( this.linkLabel4 );
this.Controls.Add( this.linkLabel3 );
this.Controls.Add( this.listView1 );
this.Controls.Add( this.height );
this.Controls.Add( this.width );
this.Controls.Add( this.path2 );
this.Controls.Add( this.path1 );
this.Controls.Add( this.linkLabel2 );
this.Controls.Add( this.linkLabel1 );
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout( false );
}
#endregion
微信搜索“优雅的代码”关注本站的公众号,或直接使用微信扫描下面二维码关注本站公众号,以获取最新内容。
个人成长离不开各位的关注,你的关注就是我继续前行的动力。