Share via


IInkRenderer::InkSpaceToPixel

4/8/2010

Converts a location in ink space coordinates to a location in pixel space for the IInkRenderer object, using a handle for the conversion.

Syntax

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

Parameters

  • hdcDisplay
    The handle of the device context.
  • x
    The X–coordinate of the point to convert into a pixel location.
  • y
    The Y–coordinate of the point to convert into a pixel location.

Return Value

HRESULT value Description

S_OK

Success.

E_POINTER

A parameter contained an invalid pointer.

E_INK_EXCEPTION

An exception occurred inside the method.

E_INVALIDARG

Invalid display handle.

E_FAIL

Coordinates overflowed during operation.

Remarks

InkSpaceToPixel applies the object transform, applies the view transform of the IInkRenderer object, and then converts from ink space to pixel units (1 ink unit = .01mm).

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