I have an xhtml with image and rect tags in it, and would like to
disable anti-aliasing. Is there a way to do this? Looking at the
specifications and DTDs on w3c, I am not finding anything that
indicates you can do this. I did see this was a requirement in a draft
at http://www.w3.org/1999/06/25/WD-SVG-19990625/reqts.html#DRAntialiasing
and found the attributes stroke-antialiasing and text-antialiasing
specified again in a draft at http://www.w3.org/1999/06/25/WD-
SVG-19990625/painting.html and http://www.w3.org/TR/1999/WD-
SVG-19990412/text.html respectively. Did these ever get implemented? I
tried using these attributes and it did not appear to disable anti-
aliasing. I also did not find anything for image tags. This is
possible in VML so I would hope there is an SVG equivalent.
Thanks in advance for help on this matter.
Dan W
They became the *-rendering CSS properties. So for a shape, you can do:
<circle cx="100" cy="100" r="50" shape-rendering="crispEdges"/>
See: http://www.w3.org/TR/SVG11/painting.html#RenderingProperties
--
Cameron McCormack, http://mcc.id.au/
xmpp:hey...@jabber.org ▪ ICQ 26955922 ▪ MSN c...@mcc.id.au