Putting an image onto the IRIS root window

Martin Liversage operator at IRIS.KTH.DK
Tue Nov 27 20:28:19 AEST 1990


> Is there a way to place an image onto the root window of a 4D series
> IRIS?

There are (as far as I know) two ways. To get more info on both read
the 4Sight Programmers Guide.

1) Use imakebackground from some process you run in the background.

2) Redefine PaintRoot in your user.ps file.

   /PaintRoot {
      % Your own PostScript code to draw background

      % plain blue background
      0.0 0.3 0.5 rgbcolor setcolor clipcanvaspath fill

      % replace with code to draw image
      % e.g. insert file image.ps gotten from 'tops image.bw image.ps'
      % tops has recently been made available from sgi.com, directory
      % graphics, login ftp (see message <75885 at sgi.sgi.com> for more
      % details)
   } def

You probably don't want to do any complicated drawing on the root as
it has to be redrawn every time it gets exposed. Try some of the roots
in the Windows toolchest and see the results.

Martin Liversage <operator at iris.kth.dk>
Royal Dental College Copenhagen
Department of Pediatric Dentistry
Norre Alle 20
DK-2200 Kobenhavn N



More information about the Comp.sys.sgi mailing list