Scanline edge-flag algorithm for antialiasing

Copyright (c) 2005-2007 Kiia Kallio kkallio@uiah.fi

(mlab.uiah.fi).