Rendering Digital Ink

If you take a look through the full list of properties and methods for the Ink and Stroke classes, you’ll notice that any functions for drawing ink strokes are conspicuously missing. The Tablet PC Platform in fact provides a lot of functionality to do this—so much so that it is encapsulated into its own class, called Renderer.

Renderer Class

The primary purpose of the Renderer class is to draw ink into a viewport and maintain a transformation on the ink space. A viewport can be thought of as an opening to a drawing surface such as the screen, a printer, or a bitmap. The transformation on the ink space is used to achieve zooming, sizing, scrolling, and rotation effects without having to modify the (x,y) data of the Stroke objects ...

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.