资 源 简 介
从BMP文件中装入位图并显示
the bmp file has four sections. the first is bitmapfileheader. this contains the bitmap file signature, the size of the bitmap and the offset to the array of bits that define the bitmap image. the next section is the bitmapinfoheader. this contains information such as the height and widht of the bitmap and the number of colors used. this section is followed by the color table. the color table contains two or more rgbquad structures the final section is the actual bits that define the bitmap image.
by the way, the bmp file holds a device independent bitmap and sometimes the extension used is dib.
the steps outlined below is valid for both windows 95 and windows nt. on windows 95, you can also use the loadimage() function to load a bitmap from a file. although windows nt also supports this function, it does not support the lr_loadfromfile flag. -from BMP file loaded bitmap and show the bmp file has four sections. The first is bitmapfileheader. This contains t