283
ADOBE FRAMEMAKER 6.0
FrameImage Facet Format
Header
The header describes properties of the imported graphic. These properties are described by eight 32-bit
integer values, such as the values shown in the following example:
&59a66a95
&00000040
&00000040
&00000001
&00000000
&00000001
&00000000
&00000000
Each value identifies a property of the imported graphic:
•
The first value is always the constant value
0x59a66a95
.
•
The second value is the width of the graphic in pixels. In the preceding example, the graphic is 64 pixels
wide (converting the hexadecimal value
0x00000040
to the decimal value
64
).
•
The third value is the height of the graphic in pixels. In the example, the graphic is 64 pixels high
(converting the hexadecimal value
0x00000040
to the decimal
value
64
).
•
The fourth value is the number of bits used to describe a single pixel. This value is sometimes referred to
as the depth of the graphic. For black and white graphics, only one bit is used to describe a single pixel. For
color images, eight bits are used to describe a single pixel. In the example, the value
0x00000001
indicates
that the graphic is in black and white.
•
The fifth value is not currently used and is set to
0x00000000
by default.
•
The sixth value specifies whether or not the data is encoded. If the data is encoded, this value is set to
0x00000002
. If the data is not encoded (that is, if the data is in uncompressed format), this value is set to
0x00000001
. In the example, the data is uncompressed.
•
The seventh value identifies the type of color map used by the graphic. If the graphic is in black and
white, no color map is used, and this value is set to
0x00000000
. If the graphic is in color, an RGB color
map is used, and this value is set to
0x00000001
or
0x00000002
. In the example, because the graphic is in
black and white, the value is set to
0x00000000
.
•
The eighth value is the length of the color map in bytes. If the graphic is in black and white, no color map
is used, and this value is set to
0x00000000
. If the graphic is in color, a color map with 256 colors is used
(described by 768 bytes of information), and this value is set to
0x00000300
(the hexadecimal represen-
tation of the number 768). In the example, because the graphic is in black and white, the value
0x00000000
is used.
The FrameImage format is similar to the Sun rasterfile format for bitmap images. The following section of
code is part of the
/usr/include/rasterfile.h
header file, which describes the Sun rasterfile format:
...
Summary of Contents for FRAMEMAKER 6.0
Page 1: ...MIF Reference Online Manual FrameMaker 6 0 Adobe ...
Page 15: ...15 ADOBE FRAMEMAKER 6 0 Introduction ...
Page 159: ...159 ADOBE FRAMEMAKER 6 0 MIF Book File Statements ...
Page 232: ...232 ADOBE FRAMEMAKER 6 0 MIF Asian Text Processing Statements ...
Page 252: ...252 ADOBE FRAMEMAKER 6 0 Examples ...