IInkRenderer::PixelToInkSpace method (msinkaut.h)
Converts a location in pixel space coordinates to be a location in ink space coordinates.
Syntax
HRESULT PixelToInkSpace(
[in] LONG_PTR hDC,
[in, out] long *x,
[in, out] long *y
);
Parameters
[in] hDC
The handle of the device context for the containing control or form.
[in, out] x
The x coordinate of the point to convert into an ink location.
[in, out] y
The y coordinate of the point to convert into an ink location.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
A parameter contained an invalid pointer. |
|
Invalid display handle. |
|
An exception occurred inside the method. |
Remarks
PixelToInkSpace converts from pixel to ink space (1 HIMETRIC unit = .01mm), applies the inverse of the view transform, and then applies the object transform.
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 |