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

M. Steiger updated BATIK-1030:
------------------------------

    Description: 
I am using the following code snippet in my swing drawing routines:

Object oldHint = g.getRenderingHint(RenderingHints.KEY_ANTIALIASING);
...
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, oldHint);

However, with Batik's SvgGraphics2D, oldHint is null and setting the hint 
"null" causes an exception.

So, I would suggest to initially set RenderingHints.VALUE_ANTIALIAS_DEFAULT in 
the constructor.


Btw: The anti-alias flags can be set in SVG using the *-rendering properties:

For example shape-rendering="crispEdges"


  was:
I am using the following code snippet in my swing drawing routines:

Object oldHint = g.getRenderingHint(RenderingHints.KEY_ANTIALIASING);
...
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, oldHint);

However, with Batik's SvgGraphics2D, oldHint is null and setting the hint 
"null" causes an exception.

So, I would suggest to initially set RenderingHints.VALUE_ANTIALIAS_DEFAULT in 
the constructor.


       Priority: Minor  (was: Major)
    
> RenderingHints for AntiAliasing not supported
> ---------------------------------------------
>
>                 Key: BATIK-1030
>                 URL: https://issues.apache.org/jira/browse/BATIK-1030
>             Project: Batik
>          Issue Type: Bug
>          Components: SVGGraphics2D
>    Affects Versions: 1.7
>            Reporter: M. Steiger
>            Priority: Minor
>
> I am using the following code snippet in my swing drawing routines:
> Object oldHint = g.getRenderingHint(RenderingHints.KEY_ANTIALIASING);
> ...
> g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, oldHint);
> However, with Batik's SvgGraphics2D, oldHint is null and setting the hint 
> "null" causes an exception.
> So, I would suggest to initially set RenderingHints.VALUE_ANTIALIAS_DEFAULT 
> in the constructor.
> Btw: The anti-alias flags can be set in SVG using the *-rendering properties:
> For example shape-rendering="crispEdges"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to