Closed GoogleCodeExporter closed 8 years ago
I have created a test-case, but have been unable to reproduce the error.
Could you provide me with the value of scaledImageWidth and scaledImageHeight?
Original comment by m%nobel-...@gtempaccount.com
on 7 Jul 2009 at 4:22
sorry, I've just realized that this issue is equivalent to the issue number 2.
The
exception is thrown when any of the existing images within the layout is scaled
with
a size smaller than 3 pixels.
When replacing ResampleOp() with ImprovedMultistepRescaleOp(), everything works
fine.
The new code I'm using is:
private BufferedImage originalImage;
private BufferedImageOp resampleOp;
private BufferedImage rescaledImage;
private int scaledImageWidth;
private int scaledImageHeight;
resampleOp = new ImprovedMultistepRescaleOp(scaledImageWidth,
scaledImageHeight);
rescaledImage = resampleOp.filter(originalImage, null);
g.drawImage(rescaledImage, 0, 0, rescaledImage.getWidth(), rescaledImage
.getHeight(), null);
g.dispose();
Original comment by p.palac...@psi-bt.de
on 8 Jul 2009 at 8:08
Original comment by m%nobel-...@gtempaccount.com
on 8 Jul 2009 at 4:14
Original issue reported on code.google.com by
p.palac...@psi-bt.de
on 7 Jul 2009 at 9:00