为什么不是PictureBox.Image自动缩放以适应?缩放、不是、以适应、Image

2023-09-03 07:44:07 作者:一身稚气丶

我已经在那里用户选择图片(用打开文件对话框)和接口它在一个固定大小的图片框所示。我想这幅画以适应即使分辨率高的图片框。

I've an interface where user selects picture (using OpenFileDialog) and its shown in a fixed size picturebox. I want this picture to fit in the picturebox even if the resolution is high.

做什么财产,我需要设置序让我的形象AutoScaleToFitIn的PicutreBox?

What property do I need to set inorder to let my image AutoScaleToFitIn the PicutreBox?

推荐答案

您可以设置PictureBox.SizeMode属性StretchImage.