[
https://issues.apache.org/jira/browse/PDFBOX-1880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13889714#comment-13889714
]
John Hewson commented on PDFBOX-1880:
-------------------------------------
Matrix inversion is an O(n^3) operation which makes it very expensive to use,
this is somewhat mitigated by the fact that we're dealing with very small
matrices. However, not every matrix is invertible, which means that the
approach doesn't actually solve the problem.
Can you explain what this code is supposed to be doing and how it does it?
> [PATCH] Type 1 Shading must not ignore current transformation matrix
> --------------------------------------------------------------------
>
> Key: PDFBOX-1880
> URL: https://issues.apache.org/jira/browse/PDFBOX-1880
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Attachments: RGBCUBE.pdf, Type1ShadingContext.patch,
> rgbcube.pdf-1-bad.png, rgbcube.pdf-1-good.png
>
>
> My implementation for Type 1 Shading (PDFBOX-1869) ignored the current
> transformation matrix, because I thought that the shading matrix would be
> relevant only. That is the cause for the wrong rendering of the rgbcube file.
> The attached patch fixes this.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)