OSDN Git Service

Implement stroke picking from canvas
authorMartin Renold <martinxyz@gmx.ch>
Sat, 27 Jun 2009 19:55:28 +0000 (21:55 +0200)
committerMartin Renold <martinxyz@gmx.ch>
Thu, 2 Jul 2009 16:49:12 +0000 (18:49 +0200)
commitb88b3a8af281fae585ad1c53d34c9b914803e9c2
treed9823687d56ff65b1e601ccb179f692f4452168a
parent2510a2e42b6116adc4138114922700314a91c915
Implement stroke picking from canvas

Record a one-bit bitmap of each stroke. This is saved per layer.
When looking for the stroke at a given pixel, this bitmap is
checked for each stroke.

TODO: don't waste so much memory
gui/brushsettingswindow.py
gui/drawwindow.py
lib/command.py
lib/document.py
lib/layer.py
lib/tiledsurface.py