This structure is the image header and it describes attributes of an open image file. It is the standard presentation format for image data and is returned on an mmioGetHeader function and is used on the mmioSetHeader function when the HMMIO refers to an open image file.
Note: Valid field values for the standard image presentation format are defined where it is appropriate.
typedef struct _MMIMAGEHEADER { ULONG ulHeaderLength; /* Length in bytes. */ ULONG ulContentType; /* Image content. */ ULONG ulMediaType; /* Media type. */ MMXDIBHEADER mmXDIBHeader; /* PM compatible header. */ RGB2 bmiColors[MAX_PALETTE]; /* PM compatible palette. */ } MMIMAGEHEADER; typedef MMIMAGEHEADER * PMMIMAGEHEADER ;
Structure Layout for MMIMAGEHEADER
┌─────────────────────────────────┐ │ MMIMAGEHEADER │ │ ┌───────────────────────────┐ │ │ │ MMXDIBHEADER │ │ │ │ ┌─────────────────────┐ │ │ │ │ │ XDIBHDR_PREFIX │ │ │ │ │ └─────────────────────┘ │ │ │ │ ┌─────────────────────┐ │ │ │ │ │ BITMAPINFOHEADER2 │ │ │ │ │ └─────────────────────┘ │ │ │ └───────────────────────────┘ │ └─────────────────────────────────┘