BITMAPFILEHEADER: Difference between revisions
Appearance
No edit summary |
m →Fields |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
<PRE> | <PRE> | ||
typedef struct _BITMAPFILEHEADER { | typedef struct _BITMAPFILEHEADER { | ||
USHORT usType; /* | USHORT usType; /* Type of resource the file contains. */ | ||
ULONG cbSize; /* | ULONG cbSize; /* Size of the BITMAPFILEHEADER structure in bytes. */ | ||
SHORT xHotspot; /* | SHORT xHotspot; /* Width of hotspot for icons and pointers. */ | ||
SHORT yHotspot; /* | SHORT yHotspot; /* Height of hotspot for icons and pointers. */ | ||
USHORT offBits; /* | USHORT offBits; /* Offset in bytes. */ | ||
BITMAPINFOHEADER bmp; /* | BITMAPINFOHEADER bmp; /* Bitmap information header structure. */ | ||
} BITMAPFILEHEADER; | } BITMAPFILEHEADER; | ||
typedef BITMAPFILEHEADER * PBITMAPFILEHEADER ; | typedef BITMAPFILEHEADER * PBITMAPFILEHEADER ; | ||
</PRE> | </PRE> | ||
==Fields== | ==Fields== | ||
; usType (USHORT) | ;usType (USHORT):Type of resource the file contains. | ||
:Type of resource the file contains. | |||
:Possible values are shown in the following list: | :Possible values are shown in the following list: | ||
::BFT_BMAP (0x4D42 - 'BM' for bitmaps) | |||
: | ::BFT_ICON (0x4349 - 'IC' for icons) | ||
::BFT_POINTER (0x4540 - 'PT' for pointers) | |||
: | ::BFT_COLORICON (0x4943 - 'CI' for color icons) | ||
::BFT_COLORPOINTER (0x5043 - 'CP' for color pointers) | |||
: | ;cbSize (ULONG):Size of the BITMAPFILEHEADER structure in bytes. | ||
;xHotspot (SHORT):Width of hotspot for icons and pointers. | |||
:BFT_COLORICON | |||
:BFT_COLORPOINTER | |||
;cbSize (ULONG) | |||
:Size of the BITMAPFILEHEADER structure in bytes. | |||
;xHotspot (SHORT) | |||
:Width of hotspot for icons and pointers. | |||
:This field is ignored for bit maps. | :This field is ignored for bit maps. | ||
;yHotspot (SHORT):Height of hotspot for icons and pointers. | |||
;yHotspot (SHORT) | |||
:Height of hotspot for icons and pointers. | |||
:This field is ignored for bit maps. | :This field is ignored for bit maps. | ||
;offBits (USHORT):Offset in bytes. | |||
;offBits (USHORT) | |||
:Offset in bytes. | |||
:Offset in bytes to beginning of bitmap pel data in the file, from the start of the definition. | :Offset in bytes to beginning of bitmap pel data in the file, from the start of the definition. | ||
;bmp (BITMAPINFOHEADER):Bitmap information header structure. | |||
;bmp (BITMAPINFOHEADER) | |||
:Bitmap information header structure. | |||
[[Category:PM Data type]] | [[Category:PM Data type]] |
Latest revision as of 12:43, 2 April 2025
Bitmap file header strcuture.
typedef struct _BITMAPFILEHEADER { USHORT usType; /* Type of resource the file contains. */ ULONG cbSize; /* Size of the BITMAPFILEHEADER structure in bytes. */ SHORT xHotspot; /* Width of hotspot for icons and pointers. */ SHORT yHotspot; /* Height of hotspot for icons and pointers. */ USHORT offBits; /* Offset in bytes. */ BITMAPINFOHEADER bmp; /* Bitmap information header structure. */ } BITMAPFILEHEADER; typedef BITMAPFILEHEADER * PBITMAPFILEHEADER ;
Fields
- usType (USHORT)
- Type of resource the file contains.
- Possible values are shown in the following list:
- BFT_BMAP (0x4D42 - 'BM' for bitmaps)
- BFT_ICON (0x4349 - 'IC' for icons)
- BFT_POINTER (0x4540 - 'PT' for pointers)
- BFT_COLORICON (0x4943 - 'CI' for color icons)
- BFT_COLORPOINTER (0x5043 - 'CP' for color pointers)
- cbSize (ULONG)
- Size of the BITMAPFILEHEADER structure in bytes.
- xHotspot (SHORT)
- Width of hotspot for icons and pointers.
- This field is ignored for bit maps.
- yHotspot (SHORT)
- Height of hotspot for icons and pointers.
- This field is ignored for bit maps.
- offBits (USHORT)
- Offset in bytes.
- Offset in bytes to beginning of bitmap pel data in the file, from the start of the definition.
- bmp (BITMAPINFOHEADER)
- Bitmap information header structure.