2008/10/1 Oleg72 <[EMAIL PROTECTED]>:
>
> Hi Michael,
> I tried your code at first. But it did't work as well.
>

At least you didn't get an out of memory error :-)

Here's one last suggestion, after which I'm afraid that my feeble
knowledge of JAI is used up...

RenderedImage rImg = cov.getRenderedImage();
TiledImage tImg = new TiledImage(rImg, true);
WritableRectIter iter = RectIterFactory.createWritable(tImg, null);
float c = (float)100;
do {
    do {
        iter.setSample(c);
    } while (!iter.nextPixelDone());
    iter.startPixels();
} while (!iter.nextLineDone());

Hope this helps,

Michael

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to