xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37890] New: - No transcoder hint for turning on/off anti-aliasing in ImageTranscoder
Date Tue, 13 Dec 2005 20:37:01 GMT
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: batik-dev@xmlgraphics.apache.org
        ReportedBy: steveshaw@ca.ibm.com


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: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


Mime
View raw message