日期:2014-05-17 浏览次数:20533 次
shape.Select(); //选定当前图片
app.Selection.Copy();//copy当前图片
string fileName = "";
if (Clipboard.ContainsImage())
{
Bitmap bmp = new Bitmap(Clipboard.GetImage());
fileName = System.Guid.NewGuid() + ".png";
bmp.Save(@"D:\" + fileName,
System.Drawing.Imaging.ImageFormat.Png);
}