[GRASS-dev] Re: [GRASS-user] Question about r.out.tiff

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@gclements.plus.com>