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@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: steveshaw@xxxxxxxxxx
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.
|