home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
x
/
volume6
/
xsbm
/
part01
/
README
< prev
next >
Wrap
Text File
|
1993-04-28
|
1KB
|
34 lines
xshowbitmap.c -- Dan Heller <argv@sun.com>
Displays a set of bitmaps specified on the command line, from a pipe
or typed into stdin. Bitmaps must be specified as file names.
All the bitmaps are drawn into one large pixmap which is used as the
XtNbitmap for a Label Widget. This label widget is placed in a viewport
widget so you can scroll around in it. The bitmaps are displayed in
an equal number of rows and columns if possible. You may override this
by specify *either* the number or rows (-rows N) or the number of
columns (-cols) to use. You can't specify both.
Usage: xshowbitmap
-s sorts the bitmaps in order of size (largest first)
-v verbose mode for when input is redirected to stdin.
-vw width of viewport window
-vh height of viewport window
-fg foreground_color
-bg background_color
-rows N (cannot be used with -cols)
-cols N (cannot be used with -rows)
-fn font (bitmap filename is printed with bitmap in "font")
-bw max-width (bitmaps larger than this width are excluded; default 64)
-bh max-height (bitmaps larger than this height are excluded; default 64)
- indicates to read from stdin. Piping doesn't require the '-'
argument. With no arguments, xshowfonts reads from stdin anyway.
Example:
xshowfont /usr/include/X11/bitmaps/*
compile: (triple click and paste next line)
cc -O -s xshowbitmap.c -lXaw -lXt -lXmu -lX11 -o xshowbitmap