Picture Descriptor (on File) (PICF)

b10

b16

field

type

size

bitfield

comments

0

0

lcb

long

number of bytes in the PIC structure plus size of following picture data which may be a Window's metafile, a bitmap, or the filename of a TIFF file. In the case of a Macintosh PICT picture, this includes the size of the PIC, the standard "x" metafile, and the Macintosh PICT data. See Appendix B for more information.

4

4

cbHeader

unsigned

number of bytes in the PIC (to allow for future expansion).

6

6

mfp.mm

short

8

8

mfp.xExt

short

10

A

mfp.yExt

short

12

C

mfp.hMF

short



If a Windows metafile is stored immediately following the PIC structure, the mfp is a Window's METAFILEPICT structure. When the data immediately following the PIC is a TIFF filename, mfp.mm == 98 If a bitmap is stored after the pic, mfp.mm == 99

When the PIC describes a bitmap, mfp.xExt is the width of the bitmap in pixels and mfp.yExt is the height of the bitmap in pixels..

b10

b16

field

type

size

bitfield

comments

14

E

bm

BITMAP
(14 bytes)

Window's bitmap structure when PIC describes a BITMAP.

14

E

rcWinMF

rc
(rectangle
- 8 bytes)

rect for window origin and extents when metafile is stored -- ignored if 0

28

1C

dxaGoal

short

horizontal measurement in twips of the rectangle the picture should be imaged within.

30

1E

dyaGoal

short

vertical measurement in twips of the rectangle the picture should be imaged within.



when scaling bitmaps, dxaGoal and dyaGoal may be ignored if the operation would cause the bitmap to shrink or grow by a non -power-of-two factor

b10

b16

field

type

size

bitfield

comments

32

20

mx

uns short

horizontal scaling factor supplied by user expressed in .001% units.

34

22

my

uns short

vertical scaling factor supplied by user expressed in .001% units.


for all of the Crop values, a positive measurement means the specified border has been moved inward from its original setting and a negative measurement means the border has been moved outward from its original setting.

b10

b16

field

type

size

bitfield

comments

36

24

dxaCropLeft

short

the amount the picture has been cropped on the left in twips.

38

26

dyaCropTop

short

the amount the picture has been cropped on the top in twips.

40

28

dxaCropRight

short

the amount the picture has been cropped on the right in twips.

42

2A

dyaCropBottom

short

the amount the picture has been cropped on the bottom in twips.

44

2C

brcl

short

:4

000F

Obsolete, superseded by brcTop, etc. In WinWord 1.x, it was the type of border to place around picture
0 single
1 thick
2 double
3 shadow

fFrameEmpty

short

:1

0010

picture consists of a single frame

fBitmap

short

:1

0020

==1, when picture is just a bitmap

fDrawHatch

short

:1

0040

==1, when picture is an active OLE object

fError

short

:1

0080

==1, when picture is just an error message

bpp

short

:8

bits per pixel
0 unknown
1 monochrome
4 VGA

46

2E

brcTop

BRC

specification for border above picture

50

32

brcLeft

BRC

specification for border to the left of

picture

54

36

brcBottom

BRC

specification for border below picture

58

3A

brcRight

BRC

specification for border to the right of

picture

62

3E

dxaOrigin

short

horizontal offset of hand annotation origin

64

40

dyaOrigin

short

vertical offset of hand annotation origin

66

42

cProps

short

unused

68

44

rgb

variable array of bytes containing Window's metafile, bitmap or TIFF file filename.