Partager via


IInkRenderer::SetObjectTransform

4/8/2010

Sets the IInkTransform object that represents the object transform that is used to render ink for the IInkRenderer object.

Syntax

HRESULT SetObjectTransform(
  [in] IinkTransform *objectTransform
);

Parameters

  • objectTransform
    The IInkTransform object that represents the geometric transformation — rotation, scaling, shear, and reflection — values to use to transform the stroke coordinates within the ink space.

    A NULL value for the objectTransform parameter correlates to the identity transform.

Return Value

HRESULT value Description

S_OK

Success.

E_POINTER

A parameter contained an invalid pointer.

E_INVALIDARG

objectTransform does not point to a compatible IInkTransform object.

E_INK_EXCEPTION

An exception occurred inside the method.

Remarks

The transformation applies to the points, but not the pen width.

To retrieve the object transform, use IInkRenderer::GetObjectTransform.

Object transformation occurs before view transformation. For more information, see IInkRenderer::SetViewTransform.

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