diff options
Diffstat (limited to 'src/java/org/apache/fop/render/afp/AFPImageRenderedFactory.java')
-rw-r--r-- | src/java/org/apache/fop/render/afp/AFPImageRenderedFactory.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/java/org/apache/fop/render/afp/AFPImageRenderedFactory.java b/src/java/org/apache/fop/render/afp/AFPImageRenderedFactory.java index df806a4d9..b3ffe31db 100644 --- a/src/java/org/apache/fop/render/afp/AFPImageRenderedFactory.java +++ b/src/java/org/apache/fop/render/afp/AFPImageRenderedFactory.java @@ -62,21 +62,21 @@ public class AFPImageRenderedFactory extends AFPDataObjectInfoFactory { int dataWidth = renderedImage.getWidth(); imageObjectInfo.setDataWidth(dataWidth); - ByteArrayOutputStream baout = new ByteArrayOutputStream(); - ImageEncodingHelper.encodeRenderedImageAsRGB(renderedImage, baout); - byte[] imageData = baout.toByteArray(); + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + ImageEncodingHelper.encodeRenderedImageAsRGB(renderedImage, baos); + byte[] imageData = baos.toByteArray(); boolean colorImages = state.isColorImages(); imageObjectInfo.setColor(colorImages); // convert to grayscale if (!colorImages) { - baout.reset(); + baos.reset(); int bitsPerPixel = state.getBitsPerPixel(); imageObjectInfo.setBitsPerPixel(bitsPerPixel); ImageEncodingHelper.encodeRGBAsGrayScale( - imageData, dataWidth, dataHeight, bitsPerPixel, baout); - imageData = baout.toByteArray(); + imageData, dataWidth, dataHeight, bitsPerPixel, baos); + imageData = baos.toByteArray(); } imageObjectInfo.setData(imageData); |