Hi JJ, JJ Rock <[EMAIL PROTECTED]> wrote on 11/16/2005 07:56:40 AM:
> Does the JSVGCanvas have the ability to select the rendering mode? For > instance, I want to select between low quality (aliased) mode for editing and > high quality mode for presentation. Is this possible? It is possible although there isn't a simple 'setBaseMode' method. There are two primary approaches you could take. The first would be to twiddle the DOM and simply add the image-rendering, text-rendering, etc properties to the root of the SVG document to control the rendering mode. This is as simple as setting a couple of attributes on the DOM. The second would be to manipulate the default set of hints on the renderer used by the Canvas. This can be accomplished by subclassing the canavs and constructing a new set of RenderingHints that you set on the canvas's renderer (this.renderer.setRenderingHints(newHints)). See java.awt.RenderingHints for the available hints. The default set of hints is Anti-alias on and interpolation set to bilinear. Of the two I would lean towards twiddling the default set of hints. I should mention that in either case if the SVG document specifies rendering hints they will 'override' the canvas provided rendering mode. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]