IInkRenderer::PixelToInkSpaceFromPoints
4/8/2010
Converts an array of locations in pixel space coordinates to an array of locations in ink space coordinates for the IInkRenderer object.
Syntax
HRESULT PixelToInkSpaceFromPoints (
[in] long hdcDisplay,
[in,out] VARIANT *points
);
Parameters
- hdcDisplay
The handle of the device context for the containing control or form.
points
The VARIANT array of points, as alternating Long x and y values of the form x0, y0, x1, y1, x2, y2, etc., to convert from a pixel location to ink space coordinates.For more information about the VARIANT structure, see Using the Automation Library with Windows Mobile Ink.
Return Value
HRESULT value | Description |
---|---|
S_OK |
Success. |
E_POINTER |
A parameter contained an invalid pointer. |
E_INVALIDARG |
Invalid display handle. |
E_INK_EXCEPTION |
An exception occurred inside the method. |
Remarks
PixelToInkSpaceFromPoints converts from pixel to ink space (1 ink unit = .01mm), applies the inverse of the view transform, and then applies the inverse of the object transform.
The following methods are closely related:
Requirements
Header | msinkaut.h |
Windows Embedded CE | Windows CE 5.0 and later |
Windows Mobile | Windows Mobile 6 Classic and later, Windows Mobile 6 Professional and later |