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"));
新闻热点
疑难解答