[comp.windows.x.motif] bitmaps

burzio@mmlai.UUCP (Tony Burzio) (08/17/90)

Here's a wish for bitmaps in Motif.  Right now, creating a bitmap
for a widget (or anything else) requires quite a bit of work
with Xt to match the depth with the display and all that other
stuff.  This could (or should) be moved into the Motif functionality
to make life easier.  I envision (although probably hallucinate :-)
a structure like:

	struct XmGenericBitmap
	{
		XmGenericBitmapDepth	depth;
		XmGenericBitmapWidth	width;
		XmGenericBitmapHeight	height;
		XmGenericBitmapFormat	format;
		XmGenericBitmapBits	*data;
	}

The depth should be anywhere from 1 to 24 (yes, 24).  Formats could be
anything, like UTAH_RLE, GIF, RAW, SUNRASTER, etc.  Perhaps this could be
a function that returns an acceptable X bitmap, although the widgets
should accept this raw form of input.

I'm tired of things like x11fish only working on an 8 bit display :-)

*********************************************************************
Tony Burzio               * What? When?  You're kidding, right?!
Martin Marietta Labs      *
mmlab!burzio@uunet.uu.net *
*********************************************************************