[
https://issues.apache.org/jira/browse/PDFBOX-3860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr resolved PDFBOX-3860.
-------------------------------------
Resolution: Fixed
> TilingPaint.getImage() should return an ARGB-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
> Labels: optimization
> 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]