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

怎样取得WinForm中的PictureBox缩放后的图片大小
比如一个图片是800x600
在PictureBox中显示,PictureBox 是150x150,显示模式是Zoom
怎样获得在PictureBox中的缩放图的Size?

------解决方案--------------------
帮顶
------解决方案--------------------
UP
------解决方案--------------------
PropertyInfo _ImageRectanglePropert = pictureBox1.GetType().GetProperty("ImageRectangle", BindingFlags.Instance | BindingFlags.NonPublic);

Rectangle _Rectangle =(Rectangle)_ImageRectanglePropert.GetValue(pictureBox1, null);

MessageBox.Show(_Rectangle.ToString());


这样看看.