Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!elroy.jpl.nasa.gov!usc!wuarchive!csus.edu!ucdavis!csusac!unify!openlook!openlook-request From: hine.wrage@Germany.Sun.COM (Hine Wrage - Sun Germany Professional Services - Software Consulting - Munich) Newsgroups: comp.windows.open-look Subject: Re: sunraster to X Pixmap Message-ID: <921vlk6@openlook.Unify.Com> Date: 26 Feb 91 19:34:55 GMT Lines: 12 You don't want to do a rasterfile to XPixmap function. You would do a rasterfile to XImage function. If you look at the XImage Xlib routines (XPutImage, XGetImage) you'll see that it is just a question of how to read in the header of the rasterfile for the x11 colormap and how to put the image data in to memory. The rest is just calling XPutImage to copy the XImage to a Drawable (Window or Pixmap). There is code on the net exactly like this, i.e.: XLoadImage, xbgsun. Hine