Skip to main content

Tor Norbye: Pixel Considerations

Tor Norbye provides Pixel Considerations

Antialiasing makes lines and shapes look smooth - though sometimes at the expense of sharpness. What if you're trying to draw a horizontal or vertical line where you don't need antialiasing? You might be under the impression that if you position your shapes at round integer positions, you will avoid antialiasing. But it's not quite that simple - so avoid trying to be smart with layout code like this...