日期:2014-05-17 浏览次数:21109 次
private void button2_Click(object sender, EventArgs e)
{
Metafile metafile;//定义图形-图元文件
Picture.Picture x = new Picture.Picture();//利用matlab生成的类
x.pictureTest01();//生成图象,并复制在剪切板上
IDataObject iData = Clipboard.GetDataObject();//从剪切板获取数据
if (iData.GetDataPresent(DataFormats.MetafilePict))
{
object o = iData.GetData(DataFormats.MetafilePict);
metafile = (Metafile)o;
this.pictureBox1.Image = metafile;
}
}