日期:2014-05-17 浏览次数:20928 次
#region variances
private string curFileName = null;
private Bitmap curBitmap = null;
private List<string> pathString = new List<string>();
private List<Bitmap> thumbnailImage = new List<Bitmap>();
private List<Bitmap> srcImage = new List<Bitmap>();
private Bitmap temp = null;
private int count = 0;
private int number = 0;
private int deleteNumber = 0;
#endregion
#region Functions
//Open Function
public void OpenImage()
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter = "所有图像文件 | *.bmp; *.pcx; *.png; *.jpg; *.gif;" +
"*.tif; *.ico; *.dxf; *.cgm; *.cdr; *.wmf; *.eps; *.emf|" +
"位图( *.bmp; *.jpg; *.png;...) | *.bmp; *.pcx; *.png; *.jpg; *.gif; *.tif; *.ico|" +
"矢量图( *.wmf; *.eps; *.emf;...) | *.dxf; *.cgm; *.cdr; *.wmf; *.eps; *.emf";
ofd.ShowHelp = true;
ofd.Title = "打开图像文件";
if (ofd.ShowDialog() == DialogResult.OK)
{
curFileName = ofd.FileName;
try
{
curBitmap = (Bitmap)System.Drawing.Image.FromFile(curFileN