怎样得到图像的基本属性,如:
  颜色,大小,等。

解决方案 »

  1.   

    什么图像啊,bmp可以将头66属性读到BITMAPFILEHEADER { // bmfh  
            WORD    bfType; 
            DWORD   bfSize; 
            WORD    bfReserved1; 
            WORD    bfReserved2; 
            DWORD   bfOffBits; 
    } BITMAPFILEHEADER;

    typedef struct tagBITMAPINFOHEADER{ // bmih  
       DWORD  biSize; 
       LONG   biWidth; 
       LONG   biHeight; 
       WORD   biPlanes; 
       WORD   biBitCount 
       DWORD  biCompression; 
       DWORD  biSizeImage; 
       LONG   biXPelsPerMeter; 
       LONG   biYPelsPerMeter; 
       DWORD  biClrUsed; 
       DWORD  biClrImportant; 
    } BITMAPINFOHEADER;