结构数组
An array of RGBQUAD. The elements of the array that make up the color table. BITMAPINFO=BITMAPINFOHEADER(40 bytes)+L*RGBQUAD(每个RGBQUAD是4bytes)
所以SIZEOF(BITMAPINFO)=40+L*4;
An array of RGBQUAD. The elements of the array that make up the color table. BITMAPINFO=BITMAPINFOHEADER(40 bytes)+L*RGBQUAD(每个RGBQUAD是4bytes)
所以SIZEOF(BITMAPINFO)=40+L*4;
实际用的时候,如果不用颜色表,则该数组仍然只有一个元素;若用到颜色表,应该紧接在后面分配有足够空间,大小如prog_st(st)所述。