|
| | |||||||
| Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications. |
| | LinkBack | Thread Tools |
| |||
| How to get NormalPressure from Tablet device I develop tablet application but have problem with normalPressure. I can get only X,Y and error when I try to get NormalPressure. I use the follow code: The array guidMy return only 2 elements X,Y guid. foreach (Stroke theStroke in theStrokes) { Guid[] guidMy = theStroke.PacketDescription; int[] theX = theStroke.GetPacketValuesByProperty(PacketProperty .X); int[] theY = theStroke.GetPacketValuesByProperty(PacketProperty .Y); int[] thePressure = theStroke.GetPacketValuesByProperty(PacketProperty .NormalPressure); } When I initialized InkCollector object : myInkCollector = new InkCollector(panelInk.Handle); myInkCollector.Enabled = true; I tested to constuct InkCollector with 2 parameters : Tablets tb = new Tablets(); Tablet tablet = null foreach(Tablet theTB in tb) { tablet = theTB; } myInkCollector = new InkCollector(panelInk.Handle,tablet); but not result for NormalPressure. My tablet device is Trust model: Wireless Tablet TB-2100 http://www.trust.com/products/defaul...NCH&item=12052 If you know how to decide my problem write me on E-mail: dilianl@abv.bg or dilianl******.com |
| |||
| RE: How to get NormalPressure from Tablet device Hi, I am not familiar with this specific Tablet model but my guess is that it doesn't come with a proper HID driver that complies with the requirements for TabletPC components. As a result, you only get the input through the system's mouse architecture. You can check the IsPacketPropertySupported() API [1] to see if the device/driver actually supports NormalPressure. Thanks, Stefan Wick [1] http://msdn2.microsoft.com/en-us/library/ms698162.aspx "How to get NormalPressure from Tablet" wrote: > I develop tablet application but have problem with normalPressure. I can get > only X,Y and error when I try to get NormalPressure. I use the follow code: > The array guidMy return only 2 elements X,Y guid. > > foreach (Stroke theStroke in theStrokes) > { > Guid[] guidMy = theStroke.PacketDescription; > > int[] theX = > theStroke.GetPacketValuesByProperty(PacketProperty .X); > > int[] theY = > theStroke.GetPacketValuesByProperty(PacketProperty .Y); > > int[] thePressure = > > theStroke.GetPacketValuesByProperty(PacketProperty .NormalPressure); > } > > When I initialized InkCollector object : > myInkCollector = new InkCollector(panelInk.Handle); > myInkCollector.Enabled = true; > > I tested to constuct InkCollector with 2 parameters : > Tablets tb = new Tablets(); > Tablet tablet = null > foreach(Tablet theTB in tb) > { > tablet = theTB; > } > myInkCollector = new InkCollector(panelInk.Handle,tablet); > > but not result for NormalPressure. > My tablet device is Trust model: Wireless Tablet TB-2100 > http://www.trust.com/products/defaul...NCH&item=12052 > If you know how to decide my problem write me on E-mail: dilianl@abv.bg or > dilianl******.com > > |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| More rumors about an Apple Tablet-like device | Loren | Tablet PC Bloggers | 0 | 06-12-2008 09:10 AM |
| IR Remote Control device on TX2000 Tablet PC | Paul Gray | Windows XP Tablet PC Newsgroup | 2 | 04-07-2008 11:40 AM |
| Magnetic strip reader doesn't work with tablet PC - anyone encounteredthis? (USB device, works fine on XP/2K but not on Tablet) | Peter | Windows XP Tablet PC Newsgroup | 10 | 01-10-2008 12:51 PM |
| Using the Tablet PC as an input device for my desktop PC | fox_jjkisf@trashmail.net | Windows XP Tablet PC Newsgroup | 11 | 12-03-2006 11:39 AM |
| warning: Tablet PC is a dangerous device! | www.MSmobiles.com | Windows XP Tablet PC Newsgroup | 0 | 05-26-2004 10:14 PM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |