07.05.2014 Views

The Microsoft Excel File Format - OpenOffice.org

The Microsoft Excel File Format - OpenOffice.org

The Microsoft Excel File Format - OpenOffice.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.5 BACKUP<br />

5.5 BACKUP<br />

BIFF2 BIFF3 BIFF4 BIFF5 BIFF8<br />

0040 H 0040 H 0040 H 0040 H 0040 H<br />

This record contains a Boolean value determining whether <strong>Excel</strong> makes a backup of the file while saving.<br />

Record BACKUP, BIFF2-BIFF8:<br />

Offset Size Contents<br />

0 2 1 = Create a backup on saving<br />

5.6 BITMAP<br />

BIFF2 BIFF3 BIFF4 BIFF5 BIFF8<br />

— — — — 00E9 H<br />

This record is part of the Page Settings Block (➜4.4). It stores the background bitmap of a worksheet.<br />

Record BITMAP, BIFF8:<br />

Offset Size Contents<br />

0 2 Unknown value 0009 H<br />

2 2 Unknown value 0001 H<br />

4 4 Total size of the following record data, without this field (including CONTINUE records)<br />

8 2 Unknown value 000C H<br />

10 2 Unknown value 0000 H<br />

12 2 Width of the picture (width), in pixel<br />

14 2 Height of the picture (height), in pixel<br />

16 2 Number of planes, must be 0001 H<br />

18 2 Colour depth, must be 0018 H (24 bit true-colour)<br />

20 var. Pixel data (array of height lines of the bitmap, from bottom line to top line, see below)<br />

In each line all pixels are written from left to right. Each pixel is stored as 3-byte array: the red, green, and blue<br />

component of the colour of the pixel, in this order. <strong>The</strong> size of each line is aligned to multiples of 4 by inserting zero<br />

bytes after the last pixel.<br />

Example of the bitmap data for a 3 × 3 image, each entry represents one byte. <strong>The</strong> three pixels of one line are<br />

stored in 9 bytes, therefore each line is expanded to 12 bytes (next multiple of 4).<br />

Offset Contents Remarks<br />

20 R G B R G B R G B 0 0 0 Third (bottom) line of the bitmap<br />

32 R G B R G B R G B 0 0 0 Second line of the bitmap<br />

44 R G B R G B R G B 0 0 0 First (top) line of the bitmap<br />

133

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!