IInkRenderer::PixelToInkSpaceFromPoints method (msinkaut.h)

Converts an array of locations in pixel space coordinates to an array of locations in ink space coordinates.

Syntax

HRESULT PixelToInkSpaceFromPoints(
  [in]      LONG_PTR hDC,
  [in, out] VARIANT  *Points
);

Parameters

[in] hDC

The handle of the device context for the containing control or form.

[in, out] Points

The Variant array of points, as alternating Long x and y values of the form x0, y0, x1, y1, x2, y2, and so on, to convert from a pixel location to ink space coordinates.

For more information about the VARIANT structure, see Using the COM Library.

Return value

This method can return one of these values.

Return code 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.

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

IInkRenderer

InkRenderer Class

InkSpaceToPixel Method

InkSpaceToPixelFromPoints Method

PixelToInkSpace Method