|
| | |||||||
| Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications. |
| | LinkBack | Thread Tools |
| |||
| CreateStroke There are two methods for CreateStroke... one takes in (Point[]), and the other takes in (int[], TabletPropertyDescriptionCollection). I understand the Point[] and int[] parameters, but why is TabletPropertyDescriptionCollection necessary? Part of a TabletPropertyDescription is TabletPropertyMetrics. In TabletPropertyMetrics, I need to specify Minimum, Maximum, Resolution, and Units. When I use CreateStroke(Point[]), I do not have to deal with this information, but when I use CreateStroke(int[], TabletPropertyDescriptionCollection) I do. What are the default TabletPropertyMetrics for X, Y, NormalPressure, or is it hardware dependent? |
| |||
| RE: CreateStroke Hi Thundza, yes, the TabletPropertyMetrics is hardware-dependant. You can get the metrics off the Tablet object by calling Tablet.GetPropertyMetrics() [1]. Thanks, Stefan Wick [1] http://msdn2.microsoft.com/en-us/lib...tymetrics.aspx "thundza" wrote: > There are two methods for CreateStroke... one takes in (Point[]), and the > other takes in (int[], TabletPropertyDescriptionCollection). I understand the > Point[] and int[] parameters, but why is TabletPropertyDescriptionCollection > necessary? > > Part of a TabletPropertyDescription is TabletPropertyMetrics. In > TabletPropertyMetrics, I need to specify Minimum, Maximum, Resolution, and > Units. When I use CreateStroke(Point[]), I do not have to deal with this > information, but when I use CreateStroke(int[], > TabletPropertyDescriptionCollection) I do. > > What are the default TabletPropertyMetrics for X, Y, NormalPressure, or is > it hardware dependent? |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to do "CreateStroke()" in System.Windows.Ink namespace? | Stefan Wilhelm | Tablet PC Developers | 13 | 07-23-2007 12:01 AM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |