[comp.windows.x] color raster file as root in X11?

spolsky-joel@CS.Yale.EDU (Joel Spolsky) (12/03/89)

Hello,

Is there any way to use a color rasterfile as the root in X11R3? (I'm
on a sparcstation with an 8bit color monitor). I have these nice color
scanned images I would like to use as root, but xsetroot only seems to
know about b/w bitmaps.


+----------------+----------------------------------------------------------+
|  Joel Spolsky  | bitnet: spolsky@yalecs.bitnet     uucp: ...!yale!spolsky |
|                | internet: spolsky@cs.yale.edu     voicenet: 203-436-1538 |
+----------------+----------------------------------------------------------+
                                                      #include <disclaimer.h>

rlh2@ukc.ac.uk (R.L.Hesketh) (12/03/89)

In article <7304@cs.yale.edu> spolsky-joel@CS.Yale.EDU (Joel Spolsky) writes:
>Is there any way to use a color rasterfile as the root in X11R3? (I'm
>on a sparcstation with an 8bit color monitor). I have these nice color
>scanned images I would like to use as root, but xsetroot only seems to
>know about b/w bitmaps.

Use "xloadimage" by Jim Frost (madd@std.com).  It was posted to comp.sources.x
not so long ago and works very well.  Does a nice job of dithering a greyscale
image on a monochrome screen as well.  It accepts images in a range of
different formats including Sun rasterfiles.


Richard Hesketh   :   rlh2@ukc.ac.uk    ..!mcvax!ukc!rlh2
		  :   @nsfnet-relay.ac.uk:rlh2@ukc.ac.uk
---                                               
Computing Lab., University of Kent at Canterbury,
Canterbury, Kent, CT2 7NF, United Kingdom.         Tel: (0227) 764000 ext. 3682 

kaleb@mars.jpl.nasa.gov (Kaleb Keithley) (12/06/89)

In article <7304@cs.yale.edu> spolsky-joel@CS.Yale.EDU (Joel Spolsky) writes:
>Is there any way to use a color rasterfile as the root in X11R3? (I'm
>on a sparcstation with an 8bit color monitor). I have these nice color
>scanned images I would like to use as root, but xsetroot only seems to
>know about b/w bitmaps.

Yes, it's called xgifroot, which, as you might surmise, requires gif format
files.  Use pbm(plus) to convert your tiff files to gif.

Chewey, get us outta here!
                 
kaleb@mars.jpl.nasa.gov             (818)354-8771
Kaleb Keithley

raveling@isi.edu (Paul Raveling) (12/07/89)

In article <7304@cs.yale.edu>, spolsky-joel@CS.Yale.EDU (Joel Spolsky) writes:
> 
> Is there any way to use a color rasterfile as the root in X11R3?

	The "Img" package includes a program named "setback" that
	does this.

	BTW, the latest copy of this software is now on expo.lcs.mit.edu's
	contrib directory as "img.tar.Z".  It's bloated to ~1.4 MB.
	because it includes one sample image for each of four sorts
	of images (24-bit RGB, color mapped, grayscale, & monochrome).
	Since the images stay in compressed form, the tar file grows
	by about 100K when it's uncompressed.


----------------
Paul Raveling
Raveling@isi.edu

madd@world.std.com (jim frost) (12/12/89)

rlh2@ukc.ac.uk (R.L.Hesketh) writes:
>In article <7304@cs.yale.edu> spolsky-joel@CS.Yale.EDU (Joel Spolsky) writes:
>>Is there any way to use a color rasterfile as the root in X11R3? (I'm
>>on a sparcstation with an 8bit color monitor).
>Use "xloadimage" by Jim Frost (madd@std.com).  It was posted to comp.sources.x
>not so long ago and works very well.

If you're putting color images on the root window with xloadimage,
watch for patch 03 which should be out Real Soon Now.  I modified the
color allocation scheme to avoid private colors for many cases, which
really helps when loading images onto the root.  I recognized the
private colormap cell allocation as a deficiency but was working on an
intelligent way to do shareable color allocations without loosing the
flexibility that I got from the private colors.

The new patch will also fix a good many bugs (I sucked the source
through Saber C and was disgusted with myself) and will work on a
wider range of displays than it did under patchlevel 02.

Watch for a real announcement here in a few days.  Until then, thanks
for the support that everyone has given me.

jim frost
saber software
jimf@saber.com