【WinForm】PictureBox使用汇总

一、保持图片比例跟随控件大小缩放

            pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;//PictureBoxSizeMode.StretchImage;
            pictureBox1.BackgroundImageLayout = ImageLayout.Zoom;//ImageLayout.Stretch;

参考

posted @ 2023-04-28 17:44  不溯流光  阅读(361)  评论(0编辑  收藏  举报