这个结构定义基于Windows的设备无关位图(DIB)的尺寸和颜色信息.
Global Const $tagBITMAPINFO = "dword Size;long Width;long Height;word Planes;word BitCount;dword Compression;dword SizeImage;" & _
"long XPelsPerMeter;long YPelsPerMeter;dword ClrUsed;dword ClrImportant;dword RGBQuad"
参数
| Size | The number of bytes required by the structure, minus the size of the RGBQuad data |
| Width | 指定位图宽度, 单位为像素 |
| Height | 指定位图高度, 单位为像素 |
| Planes | Specifies the number of planes for the target device. This must be set to 1 |
| BitCount | Specifies the number of bits-per-pixel |
| Compression | Specifies the type of compression for a compressed bottom-up bitmap |
| SizeImage | Specifies the size, in bytes, of the image |
| XPelsPerMeter | Specifies the horizontal resolution, in pixels-per-meter, of the target device for the bitmap |
| YPelsPerMeter | Specifies the vertical resolution, in pixels-per-meter, of the target device for the bitmap |
| ClrUsed | Specifies the number of color indexes in the color table that are actually used by the bitmap |
| ClrImportant | Specifies the number of color indexes that are required for displaying the bitmap |
| RGBQuad | An array of tagRGBQUAD structures. The elements of the array that make up the color table. |
注意/说明
None.
相关