megarfield
Mar 2nd, 2003, 03:37 AM
How can I clear the image which is printed by the "Graphics.DrawImage()" on the form.
Dim gra As Graphics
gra = Me.CreateGraphics()
Dim path As String
path = "e:\test2.bmp"
Dim picture As Image
picture = New Bitmap(path)
gra.DrawImage(picture, 0, 0)
I just want to erase the picture(test2.bmp) on the form.
And I dooooooon't want to use me.refresh(), because it's in a very low efficiency.
please give me the right code! Thanks very much!
Dim gra As Graphics
gra = Me.CreateGraphics()
Dim path As String
path = "e:\test2.bmp"
Dim picture As Image
picture = New Bitmap(path)
gra.DrawImage(picture, 0, 0)
I just want to erase the picture(test2.bmp) on the form.
And I dooooooon't want to use me.refresh(), because it's in a very low efficiency.
please give me the right code! Thanks very much!