IInkRenderer::PixelToInkSpace method

Converts a location in pixel space coordinates to be a location in ink space coordinates.

Syntax

HRESULT PixelToInkSpace(
  LONG_PTR hDC,
  long     *x,
  long     *y
);

Parameters

hDC

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

x

The x coordinate of the point to convert into an ink location.

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
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

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

   
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

PixelToInkSpaceFromPoints Method