open-src/data/rasterfile/rasterfile.4
author Alan Coopersmith <Alan.Coopersmith@Sun.COM>
Thu, 18 Feb 2010 16:03:08 -0800
changeset 907 3c35d611cdaa
parent 803 273645c45e91
child 919 425233ae7236
permissions -rw-r--r--
6927784 Remove SCCS ident tags from X gate
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
803
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     1
.\" Copyright (c) 1994 - Sun Microsystems, Inc. All rights reserved.
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
.\" Use is subject to license terms.
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     3
.\"
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     4
.\" Permission is hereby granted, free of charge, to any person obtaining a
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     5
.\" copy of this software and associated documentation files (the
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     6
.\" "Software"), to deal in the Software without restriction, including
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     7
.\" without limitation the rights to use, copy, modify, merge, publish,
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     8
.\" distribute, and/or sell copies of the Software, and to permit persons
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     9
.\" to whom the Software is furnished to do so, provided that the above
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    10
.\" copyright notice(s) and this permission notice appear in all copies of
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    11
.\" the Software and that both the above copyright notice(s) and this
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    12
.\" permission notice appear in supporting documentation.
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    13
.\"
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    14
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    15
.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    16
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    17
.\" OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    18
.\" HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    19
.\" INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    20
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    21
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    22
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    23
.\"
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    24
.\" Except as contained in this notice, the name of a copyright holder
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    25
.\" shall not be used in advertising or otherwise to promote the sale, use
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    26
.\" or other dealings in this Software without prior written authorization
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    27
.\" of the copyright holder.
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    28
.TH rasterfile 4 "29 March 1994"
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    29
.IX "images" "ras" "images" "rasterfile image format \(em \f3rasterfile\f1(4)"
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    30
.IX "rasterfile" "" "\f3rasterfile\f1(4) \(em raster image format file " ""
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    31
.SH NAME
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    32
rasterfile \- Sun's file format for raster images
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    33
.SH SYNOPSIS
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    34
.B #include <pixrect/rasterfile.h>
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    35
.SH DESCRIPTION
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    36
.LP
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    37
A rasterfile is composed of three parts:
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    38
first, a header containing 8 integers;
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    39
second, a (possibly empty) set of colormap values;
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    40
and third, the pixel image, stored a line at
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    41
a time, in increasing
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    42
.I y
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    43
order.  The image is layed out in the file
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    44
as in a memory pixrect.  Each line of the
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    45
image is rounded up to the nearest 16 bits.
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    46
.IX "rasterfile"
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    47
.LP
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    48
The header is defined by the following structure:
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    49
.LP
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    50
.RS
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    51
.nf
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    52
struct rasterfile {
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    53
	int	ras_magic;
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    54
	int	ras_width;
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    55
	int	ras_height;
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    56
	int	ras_depth;
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    57
	int	ras_length;
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    58
	int	ras_type;
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    59
	int	ras_maptype;
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    60
	int	ras_maplength;
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    61
};
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    62
.fi
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    63
.ft R
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    64
.RE
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    65
.LP
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    66
The
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    67
.I ras_magic
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    68
field always contains the following constant:
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    69
.IP
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    70
.B #define	\s-1RAS_MAGIC\s0	0x59a66a95
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    71
.LP
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    72
The
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    73
.IR ras_width ,
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    74
.IR ras_height ,
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    75
and
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    76
.I ras_depth
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    77
fields contain the image's width and height in pixels,
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    78
and its depth in bits per pixel, respectively.
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    79
The depth is either 1 or 8, corresponding
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    80
to standard frame buffer depths.  The
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    81
.I ras_length
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    82
field contains the length in bytes of the image data.
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    83
For an unencoded image, this number is
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    84
computable from the
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    85
.IR ras_width ,
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    86
.IR ras_height ,
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    87
and
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    88
.I ras_depth
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    89
fields, but for an encoded image it must be explicitly stored in
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    90
order to be available without decoding the image itself.
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    91
Note: the length of the header and of
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    92
the (possibly empty)
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    93
colormap values are not included in the value of the
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    94
.I ras_length
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    95
field; it is only the image data length.
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    96
For historical reasons, files of type
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    97
.SM RT_OLD
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    98
will usually have a 0 in the
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    99
.I ras_length
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   100
field, and software expecting to encounter such files
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   101
should be prepared to compute the actual
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   102
image data length if needed.  The
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   103
.I ras_maptype
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   104
and
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   105
.I ras_maplength
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   106
fields contain the type and length in
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   107
bytes of the colormap values, respectively.  If
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   108
.I ras_maptype
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   109
is not
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   110
.SM RMT_NONE
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   111
and the
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   112
.I ras_maplength
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   113
is not 0, then the colormap values are the
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   114
.I ras_maplength
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   115
bytes immediately after the header.
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   116
These values are either uninterpreted
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   117
bytes (usually with the
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   118
.I ras_maptype
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   119
set to
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   120
.SM RMT_RAW\s0)
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   121
or the equal length red, green and blue
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   122
vectors, in that order (when the
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   123
.I ras_maptype
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   124
is
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   125
.SM RMT_EQUAL_RGB\s0).
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   126
In the latter case, the
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   127
.I ras_maplength
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   128
must be three times the size in bytes
273645c45e91 6889905 Move rasterfile header & man page to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   129
of any one of the vectors.