Adobe FRAMEMAKER 10 User Manual page 269

Hide thumbs Also See for FRAMEMAKER 10:
Table of Contents

Advertisement

The first value is always the constant value
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
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
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
black and white.
The fifth value is not currently used and is set to
The sixth value specifies whether or not the data is encoded. If the data is encoded, this value is set to
. If the data is not encoded (that is, if the data is in uncompressed format), this value is set to
0x00000002
. In the example, the data is uncompressed.
0x00000001
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
value is set to
0x00000001
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
bytes of information), and this value is set to
the example, because the graphic is in black and white, the value
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
...
struct rasterfile {
IntT ras_magic; /* magic number */
IntT ras_width; /* width (pixels) of image */
IntT ras_height; /* height (pixels) of image */
IntT ras_depth; /* depth (1, 8, or 24 bits) of pixel */
IntT ras_length; /* length (bytes) of image */
IntT ras_type; /* type of file; see RT_* below */
IntT ras_maptype; /* type of colormap; see RMT_* below */
IntT ras_maplength; /* length (bytes) of following map */
/* color map follows for ras_maplength bytes, followed by image */
};
#define RAS_MAGIC 0x59a66a95
/* Sun supported ras_type's */
...
#define RT_STANDARD 1 /* Raw image in 68000 byte order */
#define RT_BYTE_ENCODED 2 /* Run-length compression of bytes */
...
/* Sun registered ras_maptype's */
#define RMT_RAW 2
/* Sun supported ras_maptype's */
#define RMT_NONE 0 /* ras_maplength is expected to be 0 */
#define RMT_EQUAL_RGB 1 /* red[ras_maplength/3],green[],blue[] */
...
For more information, see the
0x59a66a95
to the decimal value
0x00000040
to the decimal value
0x00000000
or
. In the example, because the graphic is in black and white, the value is set
0x00000002
. If the graphic is in color, a color map with 256 colors is used (described by 768
0x00000300
header file, which describes the Sun rasterfile format:
/usr/include/rasterfile.h
.
).
64
).
64
0x00000001
by default.
0x00000000
. If the graphic is in color, an RGB color map is used, and this
(the hexadecimal representation of the number 768). In
is used.
0x00000000
header file and the Sun man page on
ADOBE FRAMEMAKER 10
MIF Reference
indicates that the graphic is in
rasterfile
264
.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents