none
如何获取图片得分辨率? RRS feed

答案

  • 这是C#语法,你可以翻译成VB.Net

    System.Drawing.Image image = System.Drawing.Image.FromFile(imagepath);

    height = image.Height;

    width = image.Width;



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP

    2012年7月29日 19:40
    版主

全部回复

  • 图片是GDI+支持的格式吗?空闲内存足够加载图片吗?程序是桌面程序还是服务程序?


    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP

    2012年7月28日 15:54
    版主
  • 是GDI+支持的   足够   桌面程序。

    Visual Basic 初学者 望关照!

    2012年7月29日 11:39
  • 这是C#语法,你可以翻译成VB.Net

    System.Drawing.Image image = System.Drawing.Image.FromFile(imagepath);

    height = image.Height;

    width = image.Width;



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP

    2012年7月29日 19:40
    版主
  • 万分感谢!!

    Visual Basic 初学者 望关照!

    2012年7月30日 3:13