garya@stan.com (Gary Aitken) (09/02/88)
Xlib has the procedures XCreateBitmapFromData XReadBitmapFile to handle converting static data or data in a bitmap file to a Bitmap which is equivalent to a Pixmap on a single plane display. The procedure XCreatePixmapFromBitmapData will convert static data to a Pixmap suitable for use on a multiplane display. However, it appears there is no way short of the client decoding the bitmap file itself to get a bitmap file into Pixmap format. Is this true, or am I missing something? -- Gary Aitken ncar!boulder!stan!garya
jim@EXPO.LCS.MIT.EDU (Jim Fulton) (09/03/88)
> generating a pixmap from a bitmap file?
Create a GC with foreground and background set to the right colors,
graphics_exposures false, and function GXcopy. Then do a CopyPlane
from the bitmap to the pixmap.
Look at xsetroot.
RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) (09/03/88)
Date: 2 Sep 88 15:30:17 GMT From: stan!garya@boulder.colorado.edu (Gary Aitken) However, it appears there is no way short of the client decoding the bitmap file itself to get a bitmap file into Pixmap format. Is this true, or am I missing something? You aren't missing anything, except the functionality you require. This has been pointed out a number of times.
jkh@violet.berkeley.edu (Jordan K. Hubbard) (09/03/88)
In article <229@stan.com> garya@stan.com (Gary Aitken) writes: > XCreatePixmapFromBitmapData >will convert static data to a Pixmap suitable for use on a >multiplane display. > >However, it appears there is no way short of the client decoding >the bitmap file itself to get a bitmap file into Pixmap format. >Is this true, or am I missing something? A few months ago, I proposed XReadBitmapFileData() and submitted the (trivial) code to athena. I don't know what ever happened to it (some recent traffic seems to indicate that something is being decided on, but that't not clear). Being as I have to include this routine with every awm release (awm uses it heavily), I'm also really curious as to what is being done. Anyone from athena care to comment? Jordan
RWS@zermatt.lcs.mit.EDU (Robert Scheifler) (09/03/88)
Date: 3 Sep 88 03:40:22 GMT From: jkh@violet.berkeley.edu (Jordan K. Hubbard) A few months ago, I proposed XReadBitmapFileData() and submitted the (trivial) code to athena. For the record, the MIT X Consortium is not part of Project Athena. Anyone from athena care to comment? Probably not, but I will. It will not be part of Xlib in R3. It or something like it probably will be somewhere on the MIT distribution.
swick@ATHENA.MIT.EDU (Ralph R. Swick) (09/04/88)
Date: 3 Sep 88 03:40:22 GMT From: jkh@violet.berkeley.edu (Jordan K. Hubbard) Anyone from athena care to comment? Athena is now only one vote (of 40+) as to what is changed in Xlib.