[
https://issues.apache.org/jira/browse/PDFBOX-6359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18154432#comment-18154432
]
ASF subversion and git services commented on PDFBOX-6359:
---------------------------------------------------------
Commit 1941167 from Tilman Hausherr in branch 'pdfbox/branches/3.0'
[ https://svn.apache.org/r1941167 ]
PDFBOX-6359: fix bug in destination offset reported by copilot + rename variable
> 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]