IMDATA: Image Data (7Fh)

The IMDATA record contains the complete description of a bitmapped graphic object, such as a drawing created by a graphics tool.

Record Data

Offset

Name

Size

Contents

4

cf

2

Image format:
= 02h, Windows metafile or Macintosh PICT format
= 09h, Windows bitmap format
= 0Eh, Native format (see text)

6

env

2

Environment from which the file was written:
= 1, Microsoft Windows
= 2, Apple Macintosh

8

lcb

4

Length of the image data

12

data

var

Image data


For more information about the Microsoft Windows metafile file format, see the documentation for the Microsoft Windows Software Development Kit.

For more information about the Apple Macintosh PICT file format, see The Programmer's Apple Mac Sourcebook (published by Microsoft Press, ISBN 1-55615-168-3), section 2.087, "PICT File Format"; or see Inside Macintosh Volume V (published by Addison-Wesley Publishing Company, Inc., ISBN 0-201-17719-6).

If the image is in Microsoft Windows bitmap format (cf = 09h), the data field consists of a BITMAPCOREINFO data structure followed by the actual bitmap. The BITMAPCOREINFO data structure consists of a BITMAPCOREHEADER structure, followed by an array of RGBTRIPLE structures that define the color table. For more information about these structures, see the documentation for the Microsoft Windows Software Development Kit.

Native format (cf = 0Eh) stores an embedded object from another application. The image data is in the foreign application's format and cannot be directly processed by Microsoft Excel.