This topic has not yet been rated - Rate this topic

InkRenderer.SetViewTransform method

Applies to: desktop apps only

Sets the InkTransform object that represents the view transform that is used to render ink.

Syntax

HRESULT SetViewTransform(
  [in]  IInkTransform *viewTransform
);

Parameters

viewTransform [in]

The InkTransform 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 viewTransform parameter correlates to the identity transform.

Return value

This method can return one of these values.

Return codeDescription
S_OK

Success.

E_POINTER

A parameter contained an invalid pointer.

E_INVALIDARG

viewTransform does not point to a compatible InkTransform object.

E_INK_EXCEPTION

An exception occurred inside the method.

 

Remarks

The transformation applies to both the points and pen width.

View transformation occurs after object transformation.

The pen width is calculated by multiplying the specified pen width (or default of 53, if unspecified) by the square root of the determinant of the view transform.

It is problematic to call this method in response to SENT message. Test whether you are processing a SENT message by calling InSendMesssageEx and then POST the message to yourself if the message was SENT.

Requirements

Minimum supported client

Windows XP Tablet PC Edition

Minimum supported server

None supported

Header

Msinkaut.h (also requires Msinkaut_i.c)

Library

InkObj.dll

See also

InkRenderer Class
GetObjectTransform Method
GetViewTransform Method

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ