
ADOBE FRAMEMAKER 10
MIF Reference
265
Color map
The optional color map defines colors used for the imported graphic. It consists of 256 bytes of red, followed by 256
bytes of green, followed by 256 bytes of blue. Each byte contains an intensity value for a color. FF is the maximum
intensity and 00 is the minimum (none).
The color map defines 256 colors. Each color contains a red, green, and blue level of intensity. The values of the first
red byte, first green byte, and first blue byte define the first color in the map; the values of the second red, green, and
blue bytes define the second color, and so forth.
For example, the data value 05 represents the color defined by the level of red stored in the fifth byte of red, the level
of green stored in the fifth byte of green, and the level of blue stored in the fifth byte of blue. If the fifth byte of red
contains FF (the maximum red intensity) and the fifth bytes of green and blue are both 00, then 05 would represent
bright red.
Data describing the graphic
The data type can be either byte encoded or standard. Each type uses different data formats.
Byte-encoded data
If
ras_type
is
RT_BYTE_ENCODED
(if the sixth value in the header is
0x00000002
), the data is a run-length encoded
pixel matrix. The byte value 80 hexadecimal (decimal 128) is used as a separator for encoding several bytes of the
same color. The encoding scheme uses the following format:
80
nn pp
where
nn
+1 is the number of times to repeat the data byte (
pp
).
For example, the following values represent seven data bytes of the hex value 55:
80 06 55
A single pixel value of 80 must be encoded as 80 00 in the data. If the value 80 occurs sequentially, use the format:
80
nn
80
where
nn
+1 is the number of times 80 occurs.
Standard data
If
ras_type
is
RT_STANDARD
(if the sixth value in the header is
0x00000001
), the data contains uncompressed hex
data corresponding to the graphic. Each byte is eight pixels for a monochrome graphic or one pixel for color. Each
scanline of data must be padded to a word (16 bit) boundary.
00
0C
A2
0F
FF
C5
F6
D7
array of 256 red levels
(256 bytes)
0A
A1
B3
03
00
0C
E6
F7
array of 256 green levels
(256 bytes)
FF
EE
AA
11
00
DD
66
77
array of 256 blue levels
(256 bytes)
Color 05 = bright red = FF red + 00 green + 00 blue
Red level = FF
Green level = 00
Blue level = 00
05
Содержание FRAMEMAKER 10
Страница 1: ...MIF Reference ADOBE FRAMEMAKER 10...