Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.6
Description
TilingPaint.getImage() has this:
ColorSpace outputCS = ColorSpace.getInstance(ColorSpace.CS_sRGB); ColorModel cm = new ComponentColorModel(outputCS, true, false, Transparency.TRANSLUCENT, DataBuffer.TYPE_BYTE); WritableRaster raster = cm.createCompatibleWritableRaster(rasterWidth, rasterHeight); BufferedImage image = new BufferedImage(cm, raster, false, null);
This is the same problem as in PDFBOX-3854. I have a confidential file ("bicycle", p134) with many patterns, and changing the code to return BufferedImage.TYPE_INT_ARGB brings rendering from 70 secs to 26 secs.
Attachments
Issue Links
- relates to
-
PDFBOX-3854 PDDeviceRGB.toRGBImage should return a RGB-Typed-Image
- Closed