<C#>如何实现所画图形随pictureBox一起缩放?

如题,怎样实现?有没有相关代码?
2025-01-03 19:01:48
推荐回答(1个)
回答1:

this.pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;//表示图片完全充满pictureBox,拉伸
this.pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;//表示图片大小跟着pictureBox长宽按百分比缩放