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"));

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2021-08-18
  • 2022-03-07
  • 2022-02-16
  • 2021-07-20
  • 2021-07-04
相关资源
相似解决方案