Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!ll-xn!mit-eddie!uw-beaver!cornell!rochester!daemon
From: stuart@cs.rochester.edu
Newsgroups: comp.windows.x
Subject: Bitmap File format
Message-ID: <9478@sol.ARPA>
Date: 7 May 88 12:02:06 GMT
Sender: daemon@cs.rochester.edu
Lines: 15

I have a question about the X11 format of (C-language) bitmap files.

For output bytes that are completely filled, the leftmost input bits
are the most significant output bits.  However, XWriteBitmapFile does
something non-intuitive (to me, at least) for incompletely filled
output bytes, "least significance justifying" the output.  For
consistency, I'd think the data would be "most significance justified."

Which is the correct format for encoding N < 8 bits?
  1) Use the least significant N bits (e.g., N = 3, output = 0x07)
  1) Use the most significant N bits  (e.g., N = 3, output = 0xe0)

I am using X11R2, on a Sun-3/50 running SunOS 3.4, but that should all
be irrelevant, since I'm asking about the defined behavior.

Stu Friedberg  {ames,cmcl2,rutgers}!rochester!stuart  stuart@cs.rochester.edu