Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ xwdconv(1) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

xwdset(1)

scn(1)

xwd(1)

xwud(1)

XWDCONV(1)  —  NEWS-OS Programmer’s Manual

NAME

xwdconv − pixel configuration converter for XWD format image file

SYNOPSIS

xwdconv [ −in infile ] [ −out outfile ] [ −help ] [ −mode type ] [ −gamma type ] [ −xres num ] [ −yres num ] [ −xscale num ] [ −yscale num ] [ −xsize num ] [ −ysize num ] [ { −contrast num | −Contrast red  green  blue } ] [ { −bright num | −Bright red  green  blue } ] [ −dither { floyd | dot:pattern | no } ]

DESCRIPTION

xwdconv changes the pixel configuration, such as bit length of a pixel, resolution and scale, of an xwd format image data suitable for displays or printers.  If file names are not specified, it reads from standard input and writes on standard output. 

OPTIONS

−mode type
specifies the mode of output data. The available modes type are the listed below. 

 type  descriptions
direct24direct color by 24 bits/pixel
direct16direct color by 16 bits/pixel
pseudo8pseudo color by 8 bits/pixel
pseudo4pseudo color by 4 bits/pixel
gray8gray scale by 8 bits/pixel
gray4gray scale by 4 bits/pixel
bitmapbitmap by 1 bits/pixel
expandsame as direct24, if input image is
pseudo4,8 or direct16, and same as gray8,
if input image is bitmap or gray4

The format of image file dumped by xwd(1) from NWB-251 (or NWB-225A+NWB-280 or the equivalent) is pseudo8.  From NWB-254 (or the equivalent) it is direct16, from NWB-514 (or the equivalent) it is gray4, from NWB-512 (or the equivalent) it is bitmap. 

−gamma type
specifies the type of gamma compensation of color conversion which is suitable for the output device specified with type.  type should be display (default) or printer. 

−xres num , −yres num
specify resolutions if resolution should be converted. Resolutions should be an integer 50 - 600 (dpi).

−xscale num , −yscale num
specify magnification ratios if they are to be changed. They should be 10% - 1000%. Default value is 100% (no size change.)

−xsize num , −ysize num
specify the size of the output image with pixel numbers of horizontal and vertical length. The specified size may be too large for the output device.

−xmax num , −ymax num
specify the maximum size of the output image with pixel numbers of horizontal and vertical length. If the output image is larger than the specified maximum size, it is reduced to the specified maximum size with the same aspect ratio.

−contrast num , −Contrast red green blue
specify the contrast of output data. The available value is a floating point between -255 and 255, inclusively, and the higher value represents strong contrast. Default value is 0 (no effect).

−bright num , −Bright red green blue
specify the bright of output data. The available value is a floating point bigger than  0, inclusively, and the higher value represents the more bright. Default value is 1 (no effect)

−dither {floyd|dot:pattern|no}
Specifies the method of color mixing for reducing the number of colors. The default is floyd, which uses the floyd algorithm.  Dither mode requires the dot size of dither matrix and its pattern by dot:pattern.  The pattern is an integer in the range of 0 and 6.  no disables the process of the color mixing.  This option is effective when mode is bitmap or pseude4. 

−in infile
specifies the file to be converted. If it is not specified, standard input is used.

−out outfile
specifies the output file. If it is not specified, standard output is used.

−help Print out the ‘Usage:’ command syntax summary. 

FILES

XWDFile.h

SEE ALSO

xwdset(1), scn(1), xwd(1), xwud(1)

COPYRIGHT

Copyright (c) 1990, 1991, 1992, 1993 Sony Corporation

NEWS-OSRelease 4.2.1R

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026