XWD2SB(1) — X Version 11
Release 5
NAME
xwd2sb − translate xwd bitmap to Starbase bitmap format
SYNOPSIS
xwd2sb
DESCRIPTION
This command translates a bitmap file created by the xwd(1) X window dump utility program into a Starbase bitmap file as described in bitmapfile(4). Translation is done from standard input to standard output. Bitmaps created by xwd in the XYPixmap format are translated into plane-major full-depth Starbase bitmaps. ZPixmap format bitmaps are translated into pixel-major Starbase bitmaps. Xwd format bitmaps with visual class TrueColor or DirectColor are translated into Starbase bitmaps with the colormap mode CMAP_FULL. Other visual classes result in Starbase bitmaps with the CMAP_NORMAL colormap mode. Window borders stored by xwd are stripped from the image during translation.
OPTIONS
none
EXAMPLES
xwd | xwd2sb | pcltrans | lp -oraw
Invokes xwd to dump the contents of a window in ZPixmap format, xwd2sb translates the window image into Starbase format, pcltrans prepares the image for printing, and lp spools the image for the printer.
xwd -xy | xwd2sb > sbimage
Invokes xwd to dump the contents of a window in XYPixmap format and xwd2sb to translate the image into Starbase plane-major full-depth format. The Starbase bitmap image is placed in the sbimage file. (Note that pcltrans is unable to process plane-major full-depth images.)
xwd2sb <xwdfile >sbfile
Translates the image in xwdfile to Starbase format and places the result in sbfile.
RESTRICTIONS
XWD bitmaps must be 1-8, 12, or 24 planes deep. Bitmaps of depth 1-8 may have a visual class of GrayScale, StaticGray, PseudoColor, or StaticColor. Bitmaps of depths 12 or 24 must be of the DirectColor or TrueColor visual class. A 12 plane bitmap must have four bits each for red, green, and blue. A 24 plane bitmap must have eight bits each for red, green, and blue.
ORIGIN
Hewlett-Packard GTD
SEE ALSO
xwd(1), pcltrans(1), bitmapfile(4). Starbase Graphics Techniques, HP-UX Concepts and Tutorials, chapters on "Color" and "Storing and Printing Images".
Hewlett-Packard Company — HP-UX Release 10.0: November 1994