Skip to content

Latest commit

 

History

History
125 lines (75 loc) · 6.32 KB

nf-dcomp-idcompositionvisual3-settransform(idcompositiontransform3d).md

File metadata and controls

125 lines (75 loc) · 6.32 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:dcomp.IDCompositionVisual3.SetTransform(IDCompositionTransform3D)
IDCompositionVisual3::SetTransform(IDCompositionTransform3D) (dcomp.h)
Sets the Transform property of this visual to the specified 3D transform object.
IDCompositionVisual3 interface [DirectComposition]
SetTransform method
IDCompositionVisual3.SetTransform
IDCompositionVisual3.SetTransform(IDCompositionTransform3D)
IDCompositionVisual3::SetTransform
IDCompositionVisual3::SetTransform(IDCompositionTransform3D)
IDCompositionVisual3::SetTransform(IDCompositionTransform3D*)
SetTransform
SetTransform method [DirectComposition]
SetTransform method [DirectComposition]
IDCompositionVisual3 interface
dcomp/IDCompositionVisual3::SetTransform
directcomp.idcompositionvisual3_settransform_2
directcomp\idcompositionvisual3_settransform_2.htm
directcomp
04b20481-5d00-d8f9-290d-a8ab19ae6eba
12/05/2018
IDCompositionVisual3 interface [DirectComposition],SetTransform method, IDCompositionVisual3.SetTransform, IDCompositionVisual3.SetTransform(IDCompositionTransform3D), IDCompositionVisual3::SetTransform, IDCompositionVisual3::SetTransform(IDCompositionTransform3D), IDCompositionVisual3::SetTransform(IDCompositionTransform3D*), SetTransform, SetTransform method [DirectComposition], SetTransform method [DirectComposition],IDCompositionVisual3 interface, dcomp/IDCompositionVisual3::SetTransform, directcomp.idcompositionvisual3_settransform_2
dcomp.h
Windows
Windows 8 [desktop apps only]
Windows Server 2012 [desktop apps only]
Dcomp.lib
Dcomp.dll
Windows
19H1
IDCompositionVisual3::SetTransform
dcomp/IDCompositionVisual3::SetTransform
c++
APIRef
kbSyntax
COM
Dcomp.dll
IDCompositionVisual3.SetTransform

IDCompositionVisual3::SetTransform(IDCompositionTransform3D)

-description

Sets the Transform property of this visual to the specified 3D transform object.

-parameters

-param transform [in, optional]

Type: IDCompositionTransform3D*

The transform object that is used to modify the coordinate system of this visual. This parameter can point to an IDCompositionTransform interface or one of its derived interfaces. This parameter can be NULL.

-returns

Type: HRESULT

If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. See DirectComposition Error Codes for a list of error codes.

-remarks

Setting the Transform property transforms the coordinate system of the entire visual subtree that is rooted at this visual. If the Clip property of this visual is specified, the clip rectangle is also transformed.

If the Transform property previously specified a transform matrix, the newly specified transform object replaces the transform matrix.

A transformation specified by the Transform property is applied after the OffsetX and OffsetY properties. In other words, the effect of setting the Transform property and the OffsetX and OffsetY properties is the same as setting only the Transform property on a transform group where the first member of the group is an IDCompositionTranslateTransform object that has those same OffsetX and OffsetY values. However, you should use the IDCompositionVisual::SetOffsetX and SetOffsetY methods whenever possible because they are slightly faster.

This method fails if transform is an invalid pointer or if it was not created by the same IDCompositionDevice interface that created this visual. The interface cannot be a custom implementation; only interfaces created by Microsoft DirectComposition can be used with this method.

If the transform parameter is NULL, the coordinate system of this visual is transformed only by its OffsetX and OffsetY properties. Setting the Transform property to NULL is equivalent to setting it to an IDCompositionMatrixTransform object where the specified matrix is the identity matrix. However, an application should set the Transform property to NULL whenever possible because it is slightly faster.

If the OffsetX and OffsetY properties are set to 0, and the Transform property is set to NULL, the coordinate system of the visual is the same as that of its parent.

-see-also

IDCompositionMatrixTransform

IDCompositionRotateTransform

IDCompositionScaleTransform

IDCompositionSkewTransform

IDCompositionTransform

IDCompositionTranslateTransform

IDCompositionVisual

IDCompositionVisual3

IDCompositionVisual::SetOffsetX

IDCompositionVisual::SetOffsetY