[GRASS-dev] Re: not quite there on fonts

Glynn Clements glynn at gclements.plus.com
Sun May 13 03:14:22 EDT 2007


Michael Barton wrote:

> > [...]
> >> Given what you say above, can I set all of these for the GUI session and not
> >> worry about their impact on how grass functions from the command line during
> >> that session?
> >> 
> >>    set env(GRASS_BACKGROUNDCOLOR) "ffffff"
> 
> Playing around with this variable in wxPython, it doesn't seem to do much of
> anything--probably because we need to set the background color of the
> composited map (i.e., all layers) with g.pnmcomp.

GRASS_BACKGROUNDCOLOR is irrelevant if $GRASS_TRANSPARENT == TRUE.

> I *can* change *that*
> color and it does give a new background. But I was getting odd results from
> the maps when I changed transparancy. I wonder if it's possible for
> g.pnmcomp to have a transparent background?

If you specify outmask=, g.pnmcomp should write out a PGM mask file.

The main problem is that (AFAICT) you can't use it in Tcl/Tk; the only
way to get a masked "photo" image is from a GIF file.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list