Adobe framemaker 6.0 User Manual

Page of 323
285
ADOBE FRAMEMAKER 6.0
FrameImage Facet Format
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 uncom-
pressed 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.
Differences between monochrome and color
There are two types of FrameImage files: monochrome and pseudocolor. 
Monochrome images
A monochrome graphic has the following header properties:
Property
Value
ras_depth
1
ras_maptype
RMT_NONE