[
https://issues.apache.org/jira/browse/PDFBOX-3860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16079654#comment-16079654
]
Tilman Hausherr commented on PDFBOX-3860:
-----------------------------------------
Commit 1801374 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1801374 ]
PDFBOX-3860: return BufferedImage.TYPE_INT_ARGB instead of TYPE_CUSTOM
Commit 1801375 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1801375 ]
PDFBOX-3860: return BufferedImage.TYPE_INT_ARGB instead of TYPE_CUSTOM
> 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]