Splitting and Trimming Ink

We’ve covered most editing functions of ink strokes, including creation, deletion, drawing attributes, and transformation. One area in the Tablet PC Platform remains for which digital ink can be modified. In this section, we’ll discuss the methods by which ink strokes are split into multiple pieces and clipped or trimmed outside a rectangle.

Splitting Strokes

It is sometimes desirable to split an ink stroke into two or more separate pieces. For example, to implement point-erase we could compute the rectangle intersections of the eraser on the ink stroke and chop out the segments inside the rectangle, or we might want to support the user’s ability to select only a portion of a stroke and perform operations such as moving. ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.