[
https://issues.apache.org/jira/browse/PDFBOX-6359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr resolved PDFBOX-6359.
-------------------------------------
Resolution: Fixed
> SampledImageReader.from8bit writes a region to the wrong rows
> -------------------------------------------------------------
>
> Key: PDFBOX-6359
> URL: https://issues.apache.org/jira/browse/PDFBOX-6359
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.37, 3.0.8 PDFBox
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Minor
> Fix For: 2.0.38, 3.0.9 PDFBox, 4.0.0
>
>
> I agree that the current code is incorrect, the destpos in
> System.arraycopy(tempBytes, startx * numComponents, bank, y * inputWidth *
> numComponents, scanWidth * numComponents);
> isn't correct if y isn't 0. However I'll use a different fix than
> System.arraycopy(tempBytes, startx * numComponents, bank, (y - starty) *
> width * numComponents, scanWidth * numComponents);
> that is easier to understand. The clipping feature isn't used in PDFBox AFAIK.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]