[comp.windows.x] Setting root in colour on HP9000/300

ravis@axion.bt.co.uk (Richard Avis) (01/25/91)

Although I haven't got a colour workstation (boo-hoo), I was wondering if anyone has any experience in setting the root picture on an HP9000/300 display running X11R4 (on HP-UX) version 7, in colour, from a gif file.

Can it be done, if so, how did you do it?

Any answers gratefully received......




--------------------------------------------------------------------------

Richard Avis (Mr. Forgettable)

EMail : ravis@axion.bt.co.uk
Mail : British Telecom Research Laboratories,
       Martlesham Heath,
       Ipswich,
       Suffolk,
       IP5 7RE.

"We had to destroy Ben Tre in order to save it." - Unknown U.S. Army Major

===========================================================================

don@zardoz.coral.COM (Don Dewar) (02/04/91)

Although I have not done it, because I have a SPARCstation, you should
be able to do it the same way I do.  There is a program out there on
the net (I got it from uunet) called xloadimage.  If you give it the
name of the gif image file and use the -onroot switch, it should set
you root background for you.  Good luck.

  +---------+
  | Coral   |
  |@@@@@*@**|
  |@@*@@**@@|     Don Dewar
  |*@@**@@@@|     Coral Network Corporation, Marlborough, MA
  |@***@@@@@|     Internet: don@coral.com
  |@@**@@@@@|     Phone:    (508) 460-6010
  |*********|     Fax:      (508) 481-6258
  |Networks |
  +---------+

roger@hpnmdla.HP.COM (Roger Petersen) (02/05/91)

In comp.windows.x, ravis@axion.bt.co.uk (Richard Avis) writes:

| Although I haven't got a colour workstation (boo-hoo),
| I was wondering if anyone has any experience in setting the root picture
| on an HP9000/300 display running X11R4 (on HP-UX) version 7, in colour,
| from a gif file.
| 
| Can it be done, if so, how did you do it?

You bet.  I've used both xsetrootgif and xloadimage.

Make sure you have a new (2.0+?) version of xloadimage... old versions didn't
release the colors they allocated when you destroyed the root image.
(Programs that modify the root window are supposed to set a property on the
root window, to allow future freeing of the pixmap by other applications.)

Anyway, it works great.  The performance under X11R4 is pretty good too.
With a 1024x768 13-color simpsons.gif background, when I iconify an 80x32
(~660x550 pixel) window, the root GIF image is redrawn in about 250 to 300
milliseconds. (98549 Catseye graphics card).  Newer graphics cards are faster.

Roger