我想讀出跟bmp文件中一樣的數據,有什麼辦法呢?

解决方案 »

  1.   

    HANDLE LoadImage(
      HINSTANCE hinst,   // handle of the instance containing the image
      LPCTSTR lpszName,  // name or identifier of image
      UINT uType,        // type of image
      int cxDesired,     // desired width
      int cyDesired,     // desired height
      UINT fuLoad        // load flags
    );
    详细用法请参见msdn
      

  2.   

    另外用 為何這個方法 LR_CREATEDIBSECTION讀出來的象素順序是BGR?雖然我可以自己去改成RGB但不明白這個目的為何,好像文檔中也未有提及?