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]
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.
−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, Sony Corporation.
NEWS-OSRelease 4.1C