Table of contents


sxpm - Show an XPM (X PixMap) file and/or convert XPM 1 or 2 files to XPM 3.


sxpm [ -d display ] [ -g geom ] [ -hints ] [ -icon filename ] [ -plaid | filename | - ] [ -o filename ] | -o - ] [ -pcmap ] [ -closecolors ] [ -nod ] [ -nom ] [ -mono | -grey4 | -grey | -color ] [ -sc symbol colour ] [ -sp symbol pixel ] [ -cp colour pixel ] [ -rgb filename ] [ -v ] [ -version ]


The sxpm program can be used to view any XPM (version 1, 2, or 3) file and/or to convert a file from XPM1 or XPM2 to XPM version 3. If sxpm is run with any dummy option specified, the usage is displayed. If no geometry is specified, the show window will have the size of the read pixmap. Pressing the key Q in the window will quit the program.


-d display
Specifies the display to connect to.
-g geom
Window geometry (default is pixmap’s size).
Set ResizeInc for window.
-icon filename
Set icon to pixmap created from the file filename.
Show the plaid pixmap which is stored as data.
Read from the file filename and from standard input if filename is ’-’. If no input is specified sxpm reads from standard input.
-o filename
Write to the file filename (overwrite if it already exists) and to standard output if filename is ’-’.
Use the colours specified for a monochrome visual.
Use the colours specified for a 4 colour greyscale visual.
Use the colours specified for a greyscale visual.
Use the colours specified for a colour visual.
Use a private colormap.
Try to use "close colours" before reverting to other visuals.
Do not display the pixmap in a window. (Useful when using as converter)
Do not use the clipmask if there is any.
-sc symbol colorname
Override default colour to symbol to colorname.
-sp symbol pixelvalue
Override default colour to symbol to pixelvalue.
-cp colorname pixelvalue
Override default colour to colorname to pixelvalue.
-rgb filename
Search colour names in the file filename and write them out instead of the rgb values.
Verbose - to print out extensions (stderr).
Print out the programs's version number.

Known bugs

Some window managers may not accept a pixmap which is not a bitmap as icon because this does not respect ICCCM, many of the well known ones will accept it though.


Arnaud Le Hors (lehors<at>sophia<dot>inria<dot>fr)
Bull Research France
Copyright © 1989-95 by Groupe Bull.

Table of contents

Creative Commons License
The [WWW]Xming website, documentation and images are licensed under a
[WWW]Creative Commons Attribution-NonCommercial-ShareAlike 2.0 UK: England & Wales License.
Copyright © 2005-2015 Colin Harrison All Rights Reserved