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