[jira] [Commented] (BATIK-1205) Please handle java.awt.LinearGradientPaint and java.awt.RadialGradientPaint

"Felix Natter (JIRA)" <[email protected]>
Newsgroups gmane.text.xml.batik.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/BATIK-1205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16204122#comment-16204122 ] 

Felix Natter commented on BATIK-1205:
-------------------------------------

Update: I am now using the "GradientExtensionHandler" from BATIK-1032:
  https://github.com/fnatter/svgtest/commit/efc8fe6f4092bde627662eb70b276cc73b45f8dd

and now I get correct colors, but gradients are still not complete.

I will try to get in touch with Martin (the author of the "GradientExtensionHandler").

Thanks and Best Regards,
Felix

> Please handle java.awt.LinearGradientPaint and java.awt.RadialGradientPaint
> ---------------------------------------------------------------------------
>
>                 Key: BATIK-1205
>                 URL: https://issues.apache.org/jira/browse/BATIK-1205
>             Project: Batik
>          Issue Type: Improvement
>          Components: SVGGraphics2D
>    Affects Versions: 1.9
>            Reporter: Felix Natter
>
> Dear batik developers,
> we are (the Freeplane project) are using svgSalamander to render SVG icons,
> and batik/fop to export SVG/PDF. There is a problem if svgSalamander
> generates "Multiple" gradients (java.awt.Linear/RadialGradientPaint) which
> results in wrong color rendering in the PDF.
> The problem is that these "paints" are not handled in
> org.apache.batik.svggen.SVGPaint.toSVG(Paint).
> Here is a sample project which renders three sample SVGs using svgSalamander,
> and exports to PDF using batik+fop:
>   https://github.com/fnatter/svgtest
> In order to test this, please do:
> - clone
> - gradle build cleanEclipse eclipse
> - import project into eclipse
> - Start org.freeplane.svgtest.TestBatik
> - choose a file to save the PDF to
> - notice that color rendering is broken
> I think this can be solved by BATIK-1032?
> Could you consider applying that?
> Please tell me if I can do anything to help fix this.
> Many Thanks for the very useful software :-)
> Best Regards,
> Felix



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.