EasyManua.ls Logo

Adobe FRAMEMAKER 10 - Page 269

Adobe FRAMEMAKER 10
294 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
ADOBE FRAMEMAKER 10
MIF Reference
264
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 representation 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:
...
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 /usr/include/rasterfile.h header file and the Sun man page on rasterfile.

Table of Contents

Related product manuals