cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncCopyright 1985, 1986, 1998 The Open Group
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncPermission to use, copy, modify, distribute, and sell this software and its
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncdocumentation for any purpose is hereby granted without fee, provided that
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncthe above copyright notice appear in all copies and that both that
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsynccopyright notice and this permission notice appear in supporting
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncdocumentation.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncThe above copyright notice and this permission notice shall be included in
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncall copies or substantial portions of the Software.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncExcept as contained in this notice, the name of The Open Group shall not be
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncused in advertising or otherwise to promote the sale, use or other dealings
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncin this Software without prior written authorization from The Open Group.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * XWDFile.h MIT Project Athena, X Window system window raster
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * image dumper, dump file format header file.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * Author: Tony Della Fera, DEC
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * 27-Jun-85
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * Modifier: William F. Wyatt, SAO
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * 18-Nov-86 - version 6 for saving/restoring color maps
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsynctypedef CARD32 xwdval; /* for old broken programs */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync/* Values in the file are most significant byte first. */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync /* header_size = SIZEOF(XWDheader) + length of null-terminated
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * window name. */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync CARD32 file_version B32; /* = XWD_FILE_VERSION above */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync CARD32 pixmap_format B32; /* ZPixmap or XYPixmap */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync CARD32 xoffset B32; /* Bitmap x offset, normally 0 */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync CARD32 byte_order B32; /* of image data: MSBFirst, LSBFirst */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync /* bitmap_unit applies to bitmaps (depth 1 format XY) only.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * It is the number of bits that each scanline is padded to. */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync CARD32 bitmap_bit_order B32; /* bitmaps only: MSBFirst, LSBFirst */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync /* bitmap_pad applies to pixmaps (non-bitmaps) only.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * It is the number of bits that each scanline is padded to. */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync /* bytes_per_line is pixmap_width padded to bitmap_unit (bitmaps)
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * or bitmap_pad (pixmaps). It is the delta (in bytes) to get
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * to the same x position on an adjacent row. */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync CARD32 bits_per_rgb B32; /* Log2 of distinct color values */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync CARD32 colormap_entries B32; /* Number of entries in colormap; not used? */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync CARD32 ncolors B32; /* Number of XWDColor structures */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync CARD32 window_x B32; /* Window upper left X coordinate */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync CARD32 window_y B32; /* Window upper left Y coordinate */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync CARD32 window_bdrwidth B32; /* Window border width */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync/* Null-terminated window name follows the above structure. */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync/* Next comes XWDColor structures, at offset XWDFileHeader.header_size in
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * the file. XWDFileHeader.ncolors tells how many XWDColor structures
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * there are.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsynctypedef struct {
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync/* Last comes the image data in the format described by XWDFileHeader. */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#endif /* XWDFILE_H */