The LassoUI Class

This class is useful if you’re implementing a custom selection mode or a real-time lasso selection. It implements the lasso dots seen in InkOverlay and Windows Journal.

To use the LassoUI class, create an instance using the new operator, call the Start method with the initial starting point of the lasso, and then repeatedly call the Continue method for subsequent points of the lasso. No calculation is required to measure distance or drop points to achieve the evenly spaced lasso dots—the class handles this automatically. To obtain the array of points constituting the lasso, query the Points property.

LassoUI

public LassoUI()

Class constructor.

Start

public void Start(Graphics g, Point ptStart)

This method indicates the start of a lasso, ...

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.