You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2017/07/09 16:12:00 UTC
[jira] [Updated] (PDFBOX-3860) TilingPaint.getImage() should return
an ARGB-Typed-Image
[ https://issues.apache.org/jira/browse/PDFBOX-3860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr updated PDFBOX-3860:
------------------------------------
Summary: TilingPaint.getImage() should return an ARGB-Typed-Image (was: TilingPaint.getImage() should return a RGB-Typed-Image)
> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org