Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/X11
File: XWDFile.h
/*
[0] Fix | Delete
[1] Fix | Delete
Copyright 1985, 1986, 1998 The Open Group
[2] Fix | Delete
[3] Fix | Delete
Permission to use, copy, modify, distribute, and sell this software and its
[4] Fix | Delete
documentation for any purpose is hereby granted without fee, provided that
[5] Fix | Delete
the above copyright notice appear in all copies and that both that
[6] Fix | Delete
copyright notice and this permission notice appear in supporting
[7] Fix | Delete
documentation.
[8] Fix | Delete
[9] Fix | Delete
The above copyright notice and this permission notice shall be included in
[10] Fix | Delete
all copies or substantial portions of the Software.
[11] Fix | Delete
[12] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
[13] Fix | Delete
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
[14] Fix | Delete
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
[15] Fix | Delete
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
[16] Fix | Delete
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
[17] Fix | Delete
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[18] Fix | Delete
[19] Fix | Delete
Except as contained in this notice, the name of The Open Group shall not be
[20] Fix | Delete
used in advertising or otherwise to promote the sale, use or other dealings
[21] Fix | Delete
in this Software without prior written authorization from The Open Group.
[22] Fix | Delete
[23] Fix | Delete
*/
[24] Fix | Delete
[25] Fix | Delete
/*
[26] Fix | Delete
* XWDFile.h MIT Project Athena, X Window system window raster
[27] Fix | Delete
* image dumper, dump file format header file.
[28] Fix | Delete
*
[29] Fix | Delete
* Author: Tony Della Fera, DEC
[30] Fix | Delete
* 27-Jun-85
[31] Fix | Delete
*
[32] Fix | Delete
* Modifier: William F. Wyatt, SAO
[33] Fix | Delete
* 18-Nov-86 - version 6 for saving/restoring color maps
[34] Fix | Delete
*/
[35] Fix | Delete
[36] Fix | Delete
#ifndef XWDFILE_H
[37] Fix | Delete
#define XWDFILE_H
[38] Fix | Delete
[39] Fix | Delete
#include <X11/Xmd.h>
[40] Fix | Delete
[41] Fix | Delete
#define XWD_FILE_VERSION 7
[42] Fix | Delete
#define sz_XWDheader 100
[43] Fix | Delete
#define sz_XWDColor 12
[44] Fix | Delete
[45] Fix | Delete
typedef CARD32 xwdval; /* for old broken programs */
[46] Fix | Delete
[47] Fix | Delete
/* Values in the file are most significant byte first. */
[48] Fix | Delete
[49] Fix | Delete
typedef struct _xwd_file_header {
[50] Fix | Delete
/* header_size = SIZEOF(XWDheader) + length of null-terminated
[51] Fix | Delete
* window name. */
[52] Fix | Delete
CARD32 header_size;
[53] Fix | Delete
[54] Fix | Delete
CARD32 file_version; /* = XWD_FILE_VERSION above */
[55] Fix | Delete
CARD32 pixmap_format; /* ZPixmap or XYPixmap */
[56] Fix | Delete
CARD32 pixmap_depth; /* Pixmap depth */
[57] Fix | Delete
CARD32 pixmap_width; /* Pixmap width */
[58] Fix | Delete
CARD32 pixmap_height; /* Pixmap height */
[59] Fix | Delete
CARD32 xoffset; /* Bitmap x offset, normally 0 */
[60] Fix | Delete
CARD32 byte_order; /* of image data: MSBFirst, LSBFirst */
[61] Fix | Delete
[62] Fix | Delete
/* bitmap_unit applies to bitmaps (depth 1 format XY) only.
[63] Fix | Delete
* It is the number of bits that each scanline is padded to. */
[64] Fix | Delete
CARD32 bitmap_unit;
[65] Fix | Delete
[66] Fix | Delete
CARD32 bitmap_bit_order; /* bitmaps only: MSBFirst, LSBFirst */
[67] Fix | Delete
[68] Fix | Delete
/* bitmap_pad applies to pixmaps (non-bitmaps) only.
[69] Fix | Delete
* It is the number of bits that each scanline is padded to. */
[70] Fix | Delete
CARD32 bitmap_pad;
[71] Fix | Delete
[72] Fix | Delete
CARD32 bits_per_pixel; /* Bits per pixel */
[73] Fix | Delete
[74] Fix | Delete
/* bytes_per_line is pixmap_width padded to bitmap_unit (bitmaps)
[75] Fix | Delete
* or bitmap_pad (pixmaps). It is the delta (in bytes) to get
[76] Fix | Delete
* to the same x position on an adjacent row. */
[77] Fix | Delete
CARD32 bytes_per_line;
[78] Fix | Delete
CARD32 visual_class; /* Class of colormap */
[79] Fix | Delete
CARD32 red_mask; /* Z red mask */
[80] Fix | Delete
CARD32 green_mask; /* Z green mask */
[81] Fix | Delete
CARD32 blue_mask; /* Z blue mask */
[82] Fix | Delete
CARD32 bits_per_rgb; /* Log2 of distinct color values */
[83] Fix | Delete
CARD32 colormap_entries; /* Number of entries in colormap; not used? */
[84] Fix | Delete
CARD32 ncolors; /* Number of XWDColor structures */
[85] Fix | Delete
CARD32 window_width; /* Window width */
[86] Fix | Delete
CARD32 window_height; /* Window height */
[87] Fix | Delete
CARD32 window_x; /* Window upper left X coordinate */
[88] Fix | Delete
CARD32 window_y; /* Window upper left Y coordinate */
[89] Fix | Delete
CARD32 window_bdrwidth; /* Window border width */
[90] Fix | Delete
} XWDFileHeader;
[91] Fix | Delete
[92] Fix | Delete
/* Null-terminated window name follows the above structure. */
[93] Fix | Delete
[94] Fix | Delete
/* Next comes XWDColor structures, at offset XWDFileHeader.header_size in
[95] Fix | Delete
* the file. XWDFileHeader.ncolors tells how many XWDColor structures
[96] Fix | Delete
* there are.
[97] Fix | Delete
*/
[98] Fix | Delete
[99] Fix | Delete
typedef struct {
[100] Fix | Delete
CARD32 pixel;
[101] Fix | Delete
CARD16 red;
[102] Fix | Delete
CARD16 green;
[103] Fix | Delete
CARD16 blue;
[104] Fix | Delete
CARD8 flags;
[105] Fix | Delete
CARD8 pad;
[106] Fix | Delete
} XWDColor;
[107] Fix | Delete
[108] Fix | Delete
/* Last comes the image data in the format described by XWDFileHeader. */
[109] Fix | Delete
[110] Fix | Delete
#endif /* XWDFILE_H */
[111] Fix | Delete
[112] Fix | Delete
[113] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function