标签:
double DPI = pictureBox1.Image.HorizontalResolution;//获得分辨率 gisoracle
double w = 1.0 * pictureBox1.Image.Width / DPI * 25.4;
double h = 1.0 * pictureBox1.Image.Height / DPI * 25.4;
MessageBox.Show(w.ToString("f2") + ":" + h.ToString("f2"));
标签:
原文地址:http://www.cnblogs.com/gisoracle/p/4821515.html