[GRASS-user] Question about r.out.tiff

Glynn Clements glynn at gclements.plus.com
Tue Sep 30 22:18:36 EDT 2008


Nikos Alexandris wrote:

> If I want to force NULL's to become 0 in the r.out.tiff module is it
> enough to change the line
> 
> G_set_null_value_color(255, 255, 255, &colors);
> 
> to
> 
> G_set_null_value_color(0, 0, 0, &colors);
> 
> ?

That will change them to black. For a paletted image, it won't have
any effect upon the indices (AFAICT, nulls end up as garbage).

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


More information about the grass-user mailing list