DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37890>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37890

           Summary: No transcoder hint for turning on/off anti-aliasing in
                    ImageTranscoder
           Product: Batik
           Version: 1.6
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Utilities
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Should be a setable key to allow toggling on or off the anti-aliasing during 
render to the BufferedImage.

i.e. 
public static final TranscodingHints.Key KEY_ANTI_ALIASING
                = new BooleanKey();

Then when initializing the StaticRenderer do something like:

boolean antialias = true;
                if (hints.containsKey(KEY_ANTI_ALIASING)) {
                        antialias = 
((Boolean)hints.get(KEY_ANTI_ALIASING)).booleanValue();
                }
                
                RenderingHints renderHints = renderer.getRenderingHints();
                renderHints.put(RenderingHints.KEY_ANTIALIASING,
                                antialias ? RenderingHints.VALUE_ANTIALIAS_ON : 
                                        RenderingHints.VALUE_ANTIALIAS_OFF);
                renderer.setRenderingHints(renderHints);

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to