SubsampleAverage -> getAsBufferedImage = Coordinate out of bounds Exception
Hi, i'm currently using JAI 1.1.3 to resize PNG's with the "SubsampleAverage" operation, as this seems to be yielding the best quality for many people using JAI.
The operation itself runs as expected but calling getAsBufferedImage() on the RenderedOp returned from JAI.create() raises a "Coordinate out of bounds" exception.
Here is a link to my code: http://pastie.org/309757
And heres the exception w/stack trace: http://pastie.org/309768
Its also worth noting that if I change the operation to "scale", no exception is raised.
Am I missing something?