【发布时间】:2019-04-05 17:43:59
【问题描述】:
我有一个图片框,可以得到类似这样的输出:
e = New PrintPageEventArgs(PictureBox1.CreateGraphics, New Rectangle(New Point(25, 25), New Size(New Point(825, 1075))), e.PageBounds, e.PageSettings)
'Draw box
e.Graphics.DrawRectangle(Pens.Gray, 20, 30, e.PageBounds.Width - 100, e.PageBounds.Height - 130)
DrawnImage = PictureBox1.Image
我需要在 Paint 事件中更新它:
Private Sub PictureBox1_Paint(sender As Object, e As PaintEventArgs) Handles PictureBox1.Paint
PictureBox1.Image = DrawnImage
End Sub
问题是 DrawnImage 为 NULL。如何捕捉图像?
【问题讨论】:
标签: .net