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 05-06-2007, 07:32 AM
David Chesnet
Newsgroup Contributor
 
Posts: n/a
IInkTablet giving erroneous values ?

extract from RealTimeStylusPluginApp.cs (TPC SDK 1.7)

// Create the PacketFilterPlugin
// Note that this custom plugin takes a rectangle in
// ink space coordinates (.01mm = 1 ink space unit), which
// specifies the filter region. This sample uses a rectangle
// that is centered over the drawing area.
float right =
((float)gbTestArea.Width*2540.0F)/(float)customDynamicRendererGraphics.DpiX;
float bottom =
((float)gbTestArea.Height*2540.0F)/(float)customDynamicRendererGraphics.DpiY;

My question:
The Ink coordinates ratio given in this sample is 2540 on the horizontal
axis.

When asking through the IInkTablet COM object, the resolution returned is
3678,54541015625 (HIMETRICS= inches) with coordinates ranging from 0 to
30348, which results in an horizontal size of 8,25 inches for the screen
(30348 / 3678,...).
Using the 2540 value, the size (30348/2540) is 11,95 inches, which is the
very size I measure on the screen.

The second trouble is that when I move the pen at the edges of the screen,
the maximum value returned is 27093 (horizontally) and not 30348 (With an
IInkOverlay COM Object attached to a full screen window; attachmode=infront).

Did I misunderstood something about ratios or I am missing something ?
Can anybody give me some clue ?
Thanks,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 05-06-2007, 07:32 AM
  #2 (permalink)  
Old 05-06-2007, 07:32 AM
Stefan Wick[MS]
Newsgroup Contributor
 
Posts: n/a
RE: IInkTablet giving erroneous values ?

Hi David,

what TabletPC model are you using? On my Lenovo x60, the resolution gets
returned as 2540 and the math matches what I measure on the screen.

Thanks,
Stefan
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
Erroneous Data Deletion Davey Windows XP 5 12-23-2008 12:10 PM
Click to install updates: erroneous Goomba Windows XP 1 06-19-2008 11:00 PM
HEARTS scoring very erroneous ICQM Houston Vista Games 0 02-12-2008 09:41 PM
Erroneous activity Danny Windows Vista 3 01-13-2007 12:15 PM
I am giving up! Paul Windows Vista 15 01-02-2007 07:25 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 08:35 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0