<p>I'm playing around with the <a href="http://developer.mozilla.org/en/HTML/Canvas" rel="noreferrer"><code>&lt;canvas&gt;</code></a> element, drawing lines and such.</p>

<p>I've noticed that my diagonal lines are antialiased. I'd prefer the jaggy look for what I'm doing - is there any way of turning this feature off?</p>

For images there's now
```
context.imageSmoothingEnabled
```
```
= false
```
.
However, there's nothing that explicitly controls line drawing. You may need to draw your own lines (
the hard way
) using
```
getImageData
```
and
```
putImageData
```
.