Best Practices for InkCollector and InkOverlay

Now that you’re armed with a boatload of knowledge about tablet input, it’s worth covering a few points of interest in properly using certain facilities. To sum up the core philosophy behind getting the most out of tablet input, "conservation is key."

Let’s look at some things you should keep in mind when using either the InkCollector or InkOverlay classes.

NewPackets and NewInAirPackets Events

Remember that tablet events occur a lot more frequently than mouse events do. Performance is crucial when you use the NewPackets and NewInAirPackets event handlers because they’re called so often. Ink performance can suffer dramatically if too much time is taken executing code in them—so if you can, don’t even ...

Get Building Tablet PC Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.