作者MOONRAKER (㊣乌笨秃,又笨又秃)
看板Visual_Basic
标题Re: [.NET] 请问一个图形功能
时间Sun May 11 18:16:11 2008
※ 引述《su27 (su27)》之铭言:
: 现在要在picturebox画线 不动到原图 是要在哪宣告
: 我试过的方法 画出来的线 都显示在form 上面
: 我想到的方案 把图放入bitmap 在上面画好 在载入进去
不用载入吧,直接在buffer里面做就好了
dim b as bitmap = new bitmap(picbox1.width, picbox1.height)
'如果要取现有图片就是 dim b as bitmap = new bitmap("<图片档名>")
dim g as graphics = graphics.fromimage(b)
'然後画画…
picbox1.image=b
别人的程式写到最後好像会 g.dispose()
我是觉得可以不要,所以没写
: 这样可行吗 还是有更简单的方法
很简单啦,bitmap很快的
就只是多一行而已
不用担心这个那个,用就对了
--
Batch 2 update (5/10) -
西班牙宗教审讯 -
主教 -
地狱阿婆 -
AND LOTS MORE
Unleashed Pythonesque pleasure, fully l10n'ed for Traditional Chinese
Spam-a-lot and prosper with the Monty Python!
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
■ 蒙帝派松正体中文计画 ■ https://www.youtube.com/user/JamesBondXD
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.115.214.202
1F:→ O2000:Bitmap有CreateGraphics()? 05/12 10:51
2F:→ MOONRAKER:有!不要怀疑! 05/12 12:43
3F:→ MOONRAKER:……对不起忘记了,真蠢…是graphics.fromimage(bitmap) 05/12 12:44
※ 编辑: MOONRAKER 来自: 59.115.196.81 (05/12 12:44)
※ 编辑: MOONRAKER 来自: 59.115.198.248 (05/12 20:10)