O'Reilly logo

Building Tablet PC Applications by Philip Su, Rob Jarrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required