I'm looking again at ImageWorker. Tip: for "cm" which is an IndexColorModel,
instead of:
int color = ColorUtilities.getIntFromColor(
cm.getRed(i), cm.getGreen(i), cm.getBlue(i), 255);
Following is much more efficient:
int color = cm.getRGB(i) | 0xFF000000;
Actually the old ImageWorker had yet more overhead since it wrapped the
primitive 'int' in a java.lang.Integer and unwrapped it immediately after for no
reason.
I'm cleaning that on my local copy.
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