File:  [Research Unix] / researchv9 / X11 / src / X.V11R1 / util / bm-convert / bm-convert.doc
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:22:00 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv9-SUN3_old, researchv9-SUN3, HEAD
researchv9-SUN3(old)

bm-convert.doc
Last revised by Ron Newman, September 14, 1987

"bm-convert" reads an X10-format bitmap file on the standard input
and writes out the equivalent X11-format bitmap file on the standard
output.  It takes no command-line options of any kind, and does its
work without using an X server.

An X10-format bitmap file contains an array of 16-bit hex constants
declared as "static short foo_bits[]", where "foo" is usually replaced by
a name derived from the name of the file.  In X11 format, the declaration
is "static char foo_bits[]" and the hex constants are 8 bits wide.  In
addition, the X10 format pads each scanline to a 16-bit boundary,
while X11 format pads only to an 8-bit boundary.

For more information, look at the man page for the "bitmap" program,
and the descriptions of XReadBitmapFile, XCreateBitmapFromData, and
XPutImage in the Xlib manual.



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.