IInkRenderer::InkSpaceToPixel method (msinkaut.h)

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

Syntax

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

Parameters

[in] hdcDisplay

The handle of the device context.

[in, out] x

The X-coordinate of the point to convert into a pixel location.

[in, out] y

The Y-coordinate of the point to convert into a pixel 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_INK_EXCEPTION
An exception occurred inside the method.
E_INVALIDARG
Invalid display handle.
E_FAIL
Coordinates overflowed during operation.

Remarks

InkSpaceToPixelFromPoints applies the object transform, applies the view transform of the InkRenderer object, and then converts from inkspace to pixel units (1 ink unit = .01mm).

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

InkSpaceToPixelFromPoints Method

PixelToInkSpace Method

PixelToInkSpaceFromPoints Method