Adobe framemaker 6.0 User Manual

Page of 323
284
ADOBE FRAMEMAKER 6.0
FrameImage Facet Format
struct rasterfile {
IntTras_magic;/* magic number */
IntTras_width;/* width (pixels) of image */
IntTras_height;/* height (pixels) of image */
IntTras_depth;/* depth (1, 8, or 24 bits) of pixel */
IntTras_length;/* length (bytes) of image */
IntTras_type;/* type of file; see RT_* below */
IntTras_maptype;/* type of colormap; see RMT_* below */
IntTras_maplength;/* length (bytes) of following map */
/* color map follows for ras_maplength bytes, followed by image */
};
#define RAS_MAGIC0x59a66a95
/* Sun supported ras_type's */
...
#define RT_STANDARD1/* Raw image in 68000 byte order */
#define RT_BYTE_ENCODED2/* Run-length compression of bytes */
...
/* Sun registered ras_maptype's */
#define RMT_RAW2
/* Sun supported ras_maptype's */
#define RMT_NONE0/* ras_maplength is expected to be 0 */
#define RMT_EQUAL_RGB1/* red[ras_maplength/3],green[],blue[] */
...
For more information, see the /usr/include/rasterfile.h header file and the Sun man page on rasterfile.
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). 
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