Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!sdcsvax!trantor.harris-atd.com!mac From: mac@trantor.harris-atd.com (Mike McDonald) Newsgroups: comp.windows.x Subject: Re: Message boxes and other questions Message-ID: <1801@trantor.harris-atd.com> Date: 30 Mar 89 05:45:10 GMT References: <1014@esatst.yc.estec.nl> Reply-To: mac@trantor.harris-atd.com (Mike McDonald) Organization: Advanced Technology Dept., Harris Corp., Melbourne, Fl. Lines: 35 Sender: In article <1014@esatst.yc.estec.nl> arne@yc.estec.nl (Arne Lundberg) writes: > >2) I want to have a bitmap created by bitmap(1) #included in my program > and converted to a XImage suitable for use with the static raster > widget. How is this done? > >-- Arne Lundberg; ESTEC/YCV, The Netherlands > arne@yc.estec.nl || arne@esatst.UUCP || ALUNDBER@ESTEC.BITNET I just tried to do the same thing today. There is an example of this in the HP widget code. The file of interest is Xw/CreateTile.c. HP's basic stratigy if to create a Pixmap with the raster in it, create an XImage, and then use XPutImage to copy the Pixmap into the XImage. If my understanding of Pixmaps is correct, it's the responsibility of the Xlib's Pixmap routines to correct the byte ordering, bit ordering, etc. for the server. XImages on the other hand are the responsibility of the user. Hope this helps, Mike McDonald mac@trantor.harris-atd.com postmaster@trantor.harris-atd.com (407) 727-5060 Advanced Technology Dept. Harris Corp. M.S. 3A-1912 P.O. Box 37 Melbourne, Florida 32902