Technology Questions

Go Back   Technology Questions > Hardware Questions > Mobile Computers > Tablet PC > Tablet PC Software > Tablet PC Developers

Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 06-11-2007, 11:00 AM
thundza
Newsgroup Contributor
 
Posts: n/a
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 06-11-2007, 11:00 AM
  #2 (permalink)  
Old 06-12-2007, 02:41 PM
Stefan Wick[MS]
Newsgroup Contributor
 
Posts: n/a
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?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
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?

All times are GMT -8. The time now is 06:46 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0