日期:2014-05-20  浏览次数:20717 次

C# pictureBox

如何得到图片的相对长和宽
this.picBox1.Image.Width得到的是图片的原始的宽,我想要的是pictureBox大小变化时其中的图片的长和宽

------解决方案--------------------
this.picBox1.Width
------解决方案--------------------

------解决方案--------------------
this.picBox1.Width
this.picBox1.Height
------解决方案--------------------
this.pictureBox1.ClientSize.Width