「我在piicturebox1_paint在PictureBox
myusercolor=(sysytem.drawing.color.black)
myalpha=100
using g as graphics=graphics.fromimage(picturebox1.image)
g.clear(color.white)
dim currentpen as object=new pen(color.fromargb(myalpha,myusercolor),mypenwidth)
g.drawpath(ctype(currentpen,pen),mousepath)
end using
'using in the form_load '
picturebox1.image=new bitmap(.....)
'in the clearbutton_click '
picturebox1.image=nothing
使用此代碼這段代碼我有一個問題,當我點擊清除按鈕的圖片框在圖片框的鼠標懸停最後cleared.but清除圖像所以我不能畫一個新的圖像..
任何人都知道請爲我回答。謝謝 – user85511 2009-09-10 09:39:28