Tilman Hausherr created PDFBOX-3860:
---------------------------------------

             Summary: TilingPaint.getImage() should return a RGB-Typed-Image
                 Key: PDFBOX-3860
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3860
             Project: PDFBox
          Issue Type: Improvement
          Components: Rendering
    Affects Versions: 2.0.6
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
             Fix For: 2.0.7, 3.0.0


TilingPaint.getImage() has this:
{code}
        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);
{code}
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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to