| 发表于:2008-01-09 11:47:562楼 得分:0 |
private sub button6_click(byval sender as system.object, byval e as system.eventargs) handles button6.click dim st as new memorystream() '将手画图片存入内存流中 dim newgraphics as graphics = picturebox1.creategraphics() dim hdc as intptr = newgraphics.gethdc() dim metafile1 as new metafile(st, hdc) '存到metafile中 dim metagraphics as graphics = graphics.fromimage(metafile1) metagraphics.drawline(pens.black, 20, 20, 100, 100) metagraphics.dispose() metafile1.dispose() newgraphics.dispose() end sub 这段代码为什么不能把图片显示到窗体上,也不能转存到硬盘上 | | |
|