【WinForm】PictureBox使用汇总
一、保持图片比例跟随控件大小缩放
pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;//PictureBoxSizeMode.StretchImage; pictureBox1.BackgroundImageLayout = ImageLayout.Zoom;//ImageLayout.Stretch;
参考
/*******相与枕藉乎舟中,不知东方之既白*******/
pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;//PictureBoxSizeMode.StretchImage; pictureBox1.BackgroundImageLayout = ImageLayout.Zoom;//ImageLayout.Stretch;
参考