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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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);

Reply via email to