Skip to main content

Windows Dev Center

IDirectManipulationContent::SyncContentTransform method

Modifies the content transform while maintaining the output transform.

Syntax


HRESULT SyncContentTransform(
  [in] const float *matrix,
  [in]       DWORD pointCount
);

Parameters

matrix [in]

The transform matrix.

pointCount [in]

The size of the transform matrix. This value is always 6, because a 3x2 matrix is used for all direct manipulation transforms.

Return value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method will fail if the viewport state is DIRECTMANIPULATION_RUNNING, DIRECTMANIPULATION_INERTIA or DIRECTMANIPULATION_SUSPENDED.

This method is useful when the application wants to apply transforms on top of the content transforms at the end of a manipulation, while preserving the visual output transform of the content.

The relationship between the three primary transforms is defined as:
Output transform = Pixel rounding (Sync transform * Content transform)

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

DirectManipulation.h

IDL

DirectManipulation.idl

IID

IID_IDirectManipulationContent is defined as B89962CB-3D89-442B-BB58-5098FA0F9F16

See also

IDirectManipulationContent