[comp.windows.open-look] sunraster to X Pixmap

bisc@zellweger.ch (Thomas K. Bischoff) (02/22/91)

Is there really no such thing, or am I just blind ?


I'm looking for a utility (SUN supported?) for converting color-sunrasterfiles to 
xview (X Pixmaps). 

Thomas Bischoff
-- 
Thomas K. Bischoff
TEN Informatik AG                       Net:    bisc@zellweger.ch
Schaffhauserstr. 1                      Phone:  xx41-52-235323
CH 8400 Winterthur, Switzerland

hine.wrage@Germany.Sun.COM (Hine Wrage - Sun Germany Professional Services - Software Consulting - Munich) (02/27/91)

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