809
社区成员
发帖
与我相关
我的任务
分享
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Dim bp As New Bitmap(PictureBox1.Width, PictureBox1.Height, Imaging.PixelFormat.Format32bppPArgb)
Dim gr As Graphics = PictureBox1.CreateGraphics
For i As Int32 = 0 To 200
gr.DrawRectangle(Pens.Red, i, 40, 1, 1)
Next
PictureBox1.Image = bp
End Sub