Jump to content

BITMAPFILEHEADER2: Difference between revisions

From EDM2
Created page with "Bitmap file header structure. <PRE> typedef struct _BITMAPFILEHEADER2 { USHORT usType; Type of resource the file contains.: ULONG c..."
 
No edit summary
Line 1: Line 1:
Bitmap file header structure.
Bitmap file header structure.
<PRE>
 
typedef struct _BITMAPFILEHEADER2 {
typedef struct _BITMAPFILEHEADER2 {
   USHORT                usType;    /*  Type of resource the file contains. */
   USHORT                usType;    /*  Type of resource the file contains. */
   ULONG                cbSize;    /*  Size of the BITMAPFILEHEADER2 structure in bytes. */
   ULONG                cbSize;    /*  Size of the BITMAPFILEHEADER2 structure in bytes. */
Line 8: Line 8:
   USHORT                offBits;  /*  Offset in bytes. */
   USHORT                offBits;  /*  Offset in bytes. */
   BITMAPINFOHEADER2    bmp2;      /*  Bitmap information header structure. */
   BITMAPINFOHEADER2    bmp2;      /*  Bitmap information header structure. */
} BITMAPFILEHEADER2;
} BITMAPFILEHEADER2;
 
typedef  BITMAPFILEHEADER2  * PBITMAPFILEHEADER2 ;
 
==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 BITMAPFILEHEADER2 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.


typedef  BITMAPFILEHEADER2  * PBITMAPFILEHEADER2 ;
;bmp2 (BITMAPINFOHEADER2)
</PRE>
:Bitmap information header structure.


[[Category: Data type]]
[[Category: Data type]]

Revision as of 18:19, 25 May 2024

Bitmap file header structure.

typedef struct _BITMAPFILEHEADER2 {
 USHORT                usType;    /*  Type of resource the file contains. */
 ULONG                 cbSize;    /*  Size of the BITMAPFILEHEADER2 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. */
 BITMAPINFOHEADER2     bmp2;      /*  Bitmap information header structure. */
} BITMAPFILEHEADER2;
typedef   BITMAPFILEHEADER2   * PBITMAPFILEHEADER2 ;

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 BITMAPFILEHEADER2 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.
bmp2 (BITMAPINFOHEADER2)
Bitmap information header structure.