我在 vb.net 中有这个:
Public Class Form1
Dim output As New Bitmap(300, 300)
Dim gfx As Graphics = Graphics.FromImage(output)
Sub refreshScreen() Handles Timer1.Tick
gfx.DrawImage(Image.FromFile("wheel.png"), New Point(50, 50))
gfx.FillRectangle(Brushes.Blue, 100, 100, 25, 25) 'Some other drawings on top
PictureBox1.Image = output
End Sub
End Class
问题是“wheel.png”在 PictureBox1 中的显示比原始分辨率大,并且像缩放和模糊一样。我怎样才能解决这个问题 ?