[whatwg] Canvas draw quality

If display resolution will reach, say, 150dpi then 
antialiasing will not be needed anymore. An there are such devices
already.

I mean that carving in the stone of the specification things 
like get/setAntialiasing is not a good idea at all.

It should be some generic get/setPreference("quality"/"speed")
if this really needed at all.

Andrew Fedoniouk.


----- Original Message ----- 
From: "Alfonso Baqueiro" <abaqueiro@gmail.com>
To: <whatwg at whatwg.org>
Sent: Saturday, October 21, 2006 1:48 AM
Subject: Re: [whatwg] Canvas draw quality


>I wrote this little page to try the canvas
> 
> http://guia.sytes.net/notas/javascript/biorritmos.html
> 
> Is interesting that the drawed vertical 1px width black lines appear
> as 2px width gray lines (in firefox) I suposse that is a colateral
> effect caused by the antialiasing, so this simple case makes evident
> that we need a method turn on/off the antialiasing.
> 
> I suggest:
> 
> var canvas = document.getElementById('canvas');
> var gc = canvas.getContext('2d');
> // some drawing
> gc.setAntialiasing(false);
> // some drawing
> gc.setAntialiasing(true);
>

Received on Saturday, 21 October 2006 10:50:26 UTC