|
| | |||||||
| Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications. |
| | LinkBack | Thread Tools |
| |||
| 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, |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| 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? |