|
Data Points
The data points associated with each stroke are initially tablet coordinates
with a resolution of 0.001 inch and an origin at the upper left corner of the
tablet. Tablets must report points in this scale regardless of their actual
resolution. The Pen API provides functions to scale the points to other metric
systems. It is not necessary for the data in an HPENDATA object to remain at a resolution of 0.001 inch.
If Windows is running in portrait mode, the tablet still reports coordinates
with the upper left corner of the tablet corresponding to the current upper left
corner of the display. The developer need not be concerned with the current
orientation of the screen. The (0,0) coordinate of the Windows display always
corresponds to (0,0) on the tablet.
The HPENDATA object can contain additional information supported by the pen device, such
as pen pressure, angle, and rotation. The main header section of the HPENDATA object specifies how this additional information is stored in the stroke data
areas for each data point. Internally, such data, which reflects original
equipment manufacturer (OEM) hardware, is stored immediately following the block of
coordinates for a stroke. This is called OEM data.
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|