gdi+的作用:采用image类,可以处理的文件类型有BMP, ICON, GIF, JPEG, Exif, PNG, TIFF, WMF, and EMF等.
以下是msdn的描述:
The Image class provides methods for loading and saving raster images (bitmaps) and vector images (metafiles). An Image object encapsulates a bitmap or a metafile and stores attributes that you can retrieve by calling various Get methods. You can construct Image objects from a variety of file types including BMP, ICON, GIF, JPEG, Exif, PNG, TIFF, WMF, and EMF.
其中:getheight,getwidth为该类成员函数,以像素为单位.