Re: [Xournal-devel] Xournal line drawing algorithm

2014-10-07 Thread Denis Auroux
Dear Shuhao, It's not all that efficient in fact -- but each item (e.g. a pen stroke) has a bounding box (i.e. the smallest rectangle containing it entirely) that xournal keeps track of. So when one uses the eraser, xournal scans through all items on the page (actually just the current layer) a

Re: [Xournal-devel] Xournal line drawing algorithm

2014-10-07 Thread Shuhao Wu
Another question is how do you enabled efficient erasing? How is the line segments stored so they can be efficiently looked up for erasing? Thanks, Shuhao On 10/01/2014 05:00 PM, Denis Auroux wrote: > On 10/01/2014 05:20 PM, Shuhao Wu wrote: >> I'm also impressed by the fact that the anti aliasin