当前位置: 代码迷 >> .NET Framework >> 怎的取得WinForm中的PictureBox缩放后的图片大小
  详细解决方案

怎的取得WinForm中的PictureBox缩放后的图片大小

热度:35   发布时间:2016-05-02 00:02:49.0
怎样取得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());


这样看看.
  相关解决方案