C# pictureBox
如何得到图片的相对长和宽
this.picBox1.Image.Width得到的是图片的原始的宽,我想要的是pictureBox大小变化时其中的图片的长和宽
[解决办法]
this.picBox1.Width
this.picBox1.Height
[解决办法]
this.pictureBox1.ClientSize.Width
发布时间: 2014-01-09 23:07:34 作者: rapoo
C# pictureBox
如何得到图片的相对长和宽
this.picBox1.Image.Width得到的是图片的原始的宽,我想要的是pictureBox大小变化时其中的图片的长和宽
[解决办法]
this.picBox1.Width
this.picBox1.Height
[解决办法]
this.pictureBox1.ClientSize.Width