private void GetImageSize(){
   System.Drawing.Image image = System.Drawing.Image.FromFile(Server.MapPath("images/cancel.jpg"));
   System.Drawing.Size size = new Size(image.Width,image.Height);
   this.Label1.Text = size.Width.ToString();
   this.Label2.Text = size.Height.ToString();
  }

相关文章:

  • 2022-12-23
  • 2021-08-04
  • 2021-12-27
  • 2021-12-07
  • 2021-11-17
  • 2021-07-29
  • 2022-12-23
  • 2021-09-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
相关资源
相似解决方案