Share via


IInkRenderer::PixelToInkSpace

4/8/2010

Converts a location in pixel space coordinates to be a location in ink space coordinates for the IInkRenderer object.

Syntax

HRESULT PixelToInkSpace (
  [in] long hdcDisplay,
  [in,out] long *x,
  [in,out] long *y
);

Parameters

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

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

PixelToInkSpace converts from pixel to ink space (1 HIMETRIC unit = .01mm), applies the inverse of the view transform, and then applies 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

See Also

Concepts

Windows Mobile Ink Reference