IDirectManipulationContent::GetContentTransform method
Retrieves the transform applied to the content.
Syntax
HRESULT GetContentTransform( [out] float *matrix, [in] DWORD pointCount );
Parameters
- matrix [out]
-
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 transform contains the default overpan and bounce curves during manipulation and inertia.
This transform does not contain the sync transform set with SyncContentTransform.
- The relationship between the three primary transforms is defined as:
-
Output transform = Pixel rounding (Sync transform * Content transform)
When this method returns, the format of matrix is:
- matrix[0]=ScaleX
- matrix[1]=Unused
- matrix[2]=Unused
- matrix[3]=ScaleY
- matrix[4]=TranslateX
- matrix[5]=TranslateY
Requirements
|
Minimum supported client | Windows 8 [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [desktop apps only] |
|
Header |
|
|
IDL |
|
|
IID |
IID_IDirectManipulationContent is defined as B89962CB-3D89-442B-BB58-5098FA0F9F16 |
See also