PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Antialiased lines

does anyone know of a method to draw antialiased lines using just plain GDI ?

Are there any good alogrithms for drawing antialiased lines ? What would be even better if it could use subpixel rendering, ala Cleartype.
Wu's anti-aliased line algorithm is discussed in Michael Abrash's Black Book of graphics programming, and googling for it probably returns some <a href="http://freespace.virgin.net/hugo.elias/graphics/x_wuline.htm">worthwhile</a> pages.

(Clear-type is only good if you know the orientation, etc of the LCD display).
refractor wrote:
(Clear-type is only good if you know the orientation, etc of the LCD display).


There must be a way to determine this though... doesn't MS Reader do it?

But with PPCs having their weird and varied screen orientations, doesn't that mean on some models the sub-pixels could be aligned vertically, whilst being horizontally aligned on others?...