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 2014/01/29 19:50:09 UTC

[jira] [Updated] (PDFBOX-1869) Implementation for ShadingType 1

     [ https://issues.apache.org/jira/browse/PDFBOX-1869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr updated PDFBOX-1869:
------------------------------------

    Attachment: RGBCUBE.pdf
                FUNSH01.pdf
                asy-strokeshade.pdf
                asy-latticeshading.pdf

> Implementation for ShadingType 1
> --------------------------------
>
>                 Key: PDFBOX-1869
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1869
>             Project: PDFBox
>          Issue Type: Sub-task
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>            Priority: Minor
>         Attachments: FUNSH01.pdf, RGBCUBE.pdf, Type1ShadingContext.java, Type1ShadingPaint.java, asy-latticeshading.pdf, asy-strokeshade.pdf
>
>
> Here's an implementation for function based shading and 4 sample files. The implementation is rather simple. The real work is done in the function, see subtask. I'm using a reverse transformation of the two matrices so that getRaster() gets the "pure" values. The implementation works on two test images and fails on two. I believe that the cause for the two it fails is the problem I had with Type 4 and 5. I also noticed (when debugging) that for FUNSH01.pdf, my implementation always gets the same matrices despite that its 4 different areas in that page.
> (Don't get confused by the name "asy-latticeshading.pdf", its not type 5 lattice shading)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)