怎么获取PNG图片的长与宽

如何获取PNG图片的长与宽?
!!!!!!!!!!!!!!!!!!!!!

------解决方案--------------------
The BITMAP structure defines the height, width, color format, and bit values of a logical bitmap .

View ColorizedCopy to ClipboardPrinttypedef struct tagBITMAP {  /* bm */
   int bmType;
   int bmWidth;
   int bmHeight;
   int bmWidthBytes;
   BYTE bmPlanes;
   BYTE bmBitsPixel;
   LPVOID bmBits;
} BITMAP;