The Lord has told us what is good.
What he requires of us is this:
to do what is just,
to show constant love,
and to live in humble fellowship with our God.
-- Micah 6:8
The Lord has told us what is good.
What he requires of us is this:
to do what is just,
to show constant love,
and to live in humble fellowship with our God.
-- Micah 6:8
Transparency would be particularly nice for exporting vectors. So would anti-aliasing.
Mark
-----
Have fun or die trying - but try not to actually die. http://www.AboveCalifornia.com
Got Mac OS X? Get the AboveCalifornia Sherlock Channel:
sherlock://www.AboveCalifornia.com/sherlock/SherlockChannel.xml?action=add
On Oct 19, 2004, at 6:20 PM, Ian MacMillan wrote:
I don't think that transparency (alpha channel?) is available for GRASS yet, though I would love to see it implemented too.
-Ian
-----
Have fun or die trying - but try not to actually die. http://www.AboveCalifornia.com
Got Mac OS X? Get the AboveCalifornia Sherlock Channel:
sherlock://www.AboveCalifornia.com/sherlock/SherlockChannel.xml?action=add
Wanna frag? Add the ..::LVL Sherlock Channel and get the newest Quake3 maps:
sherlock://www.AboveCalifornia.com/sherlock/LVL/SherlockChannel.xml?action=add
> I have some rasters with large null areas.
>
> I would like to output these as images (r.out.png or r.out.tiff) with
> the null values represented by transparent pixels.
>
> I can't see any flags on these commands to enable this.
>
> Is this possible?
some clues:
set $GRASS_TRANSPARENT to "TRUE"
then d.out.png (or d.mon start=PNG etc)
Set $GRASS_WIDTH & $GRASS_HEIGHT to region settings for cols & rows to
get 1:1 scaling (as with r.out.png).
d.out.png then merge alpha in the GIMP?
r.out.ppm -> gimp?
If I'm going to have to resort to GIMP it's probably easier just to use
r.out.png then GIMP:
Edit - Layers - Add alpha channel
Edit - Select - by colour - click on white
Edit - Cut (Ctrl-X)
File - Save
But it does look like
r.out.ppm raster
pnmtopng -transparent white raster.ppm > raster.png
does the job nicely.
Thanks for pointing me in the right direction.
Thought: is it worth mentioning this in the r.out.ppm man page?