maskComponentColorModelByte at lines 1623-1627 has the following code:

if (i == g) {
    tableData[j][i] = (byte) (0);
} else {
    tableData[j][i] = (byte) (0);
}


which I suspect is a bug given that it just inconditionnaly set the color to 0.
I suspect that the "else" branch was supposed to set the value to (i).

I also wonder... it seems to me that there is no need to set the R, G or B value
of a transparent color to 0, since anything with an alpha value of 0 will be
fully transparent anyway...

        Martin

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to