Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1030

RenderingHints for AntiAliasing not supported

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: SVGGraphics2D
    • Labels:
      None

      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"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                msteiger M. Steiger
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: