Re: hit regions

On Aug 19, 2012, at 8:39 PM, Benjamin Hawkes-Lewis <> wrote:

>> Wouldn’t it be better to just keep the paths?
> Dunno. What's the practical difference between keeping a path and
> keeping a bitmap described by a path?

Here's a few differences:
- Paths are likely more memory-efficient in common cases
- Paths can handle regions that have sub-pixel accuracy relative to the canvas backing store (so hit testing can be precise when zoomed)
- Paths can plausibly handle a model where removing the topmost hit region reveals the one underneath, rather than clearing, which is more often what is desired (though you listed that as an intentional non-goal).


Received on Monday, 20 August 2012 04:43:41 UTC