IInkTablet::GetPropertyMetrics method (msinkaut.h)
Retrieves the metrics data for a specified property.
Syntax
HRESULT GetPropertyMetrics(
[in] BSTR propertyName,
[out] long *Minimum,
[out] long *Maximum,
[out] TabletPropertyMetricUnit *Units,
[out] float *Resolution
);
Parameters
[in] propertyName
The property for which you want to determine metrics.
For more information about the BSTR data type, see Using the COM Library.
[out] Minimum
The minimum value, in logical units, that the tablet reports for this property. For example, a tablet reporting x-values from 0 to 9000 has a logical minimum of 0.
[out] Maximum
The maximum value, in logical units, that the tablet reports for this property. For example, a tablet reporting x-values from 0 to 9000 would have a logical maximum of 9000.
[out] Units
The physical units of the property, such as inches or degrees. For a list of property units, see the TabletPropertyMetricUnit enumeration type.
[out] Resolution
Specifies the resolution or increment value for the units member. For example, a tablet that reports 400 dots per inch (dpi) has a resolution value of 400.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
The tablet does not support the specified property. |
|
An unspecified error occurred. |
|
A parameter contained an invalid pointer. |
|
Invalid GUID format. |
|
Unknown property string. |
|
An exception occurred while processing. |
Remarks
The properties for which you retrieve metrics may include the time that a packet was generated or the downward pressure of the pen tip on the tablet surface.
For a complete list of properties for which you can retrieve metrics, see the PacketProperty constants.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP Tablet PC Edition [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | msinkaut.h |
Library | InkObj.dll |
See also
GetPacketDescriptionPropertyMetrics Method
GetPacketValuesByProperty Method