IDCompositionDevice2 interface

Serves as a factory for all other Microsoft DirectComposition objects and provides methods to control transactional composition.

When to implement

Client applications do not implement the IDCompositionDevice2 interface; custom implementations are not supported.

Members

The IDCompositionDevice2 interface inherits from the IUnknown interface. IDCompositionDevice2 also has these types of members:

Methods

The IDCompositionDevice2 interface has these methods.

MethodDescription
Commit

Commits all DirectComposition commands that are pending on this device.

CreateAnimation

Creates an animation object that is used to animate one or more scalar properties of one or more DirectComposition objects.

CreateEffectGroup

Creates an object that represents multiple effects to be applied to a visual subtree.

CreateMatrixTransform

Creates a 2D 3-by-2 matrix transform object.

CreateMatrixTransform3D

Creates a 3D 4-by-4 matrix transform object.

CreateRectangleClip

Creates a clip object that can be used to restrict the rendering of a visual subtree to a rectangular area.

CreateRotateTransform

Creates a 2D rotation transform object.

CreateRotateTransform3D

Creates a 3D rotation transform object.

CreateScaleTransform

Creates a 2D scale transform object.

CreateScaleTransform3D

Creates a 3D scale transform object.

CreateSkewTransform

Creates a 2D skew transform object.

CreateSurface

Creates an updateable surface object that can be associated with one or more visuals for composition.

CreateSurfaceFactory

Creates a DirectComposition surface factory object, which can be used to create other DirectComposition surface or virtual surface objects

CreateTransform3DGroup

Creates a 3D transform group object that holds an array of 3D transform objects.

CreateTransformGroup

Creates a 2D transform group object that holds an array of 2D transform objects.

CreateTranslateTransform

Creates a 2D translation transform object.

CreateTranslateTransform3D

Creates a 3D translation transform object.

CreateVirtualSurface

Creates a sparsely populated surface that can be associated with one or more visuals for composition.

CreateVisual

Creates a new visual object.

GetFrameStatistics

Retrieves information from the composition engine about composition times and the frame rate.

WaitForCommitCompletion

Waits for the composition engine to finish processing the previous call to the IDCompositionDevice2::Commit method.

 

Requirements

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

Header

Dcomp.h

Library

Dcomp.lib

DLL

Dcomp.dll

See also

DCompositionCreateDevice2

 

 

Community Additions

ADD
Show:
© 2015 Microsoft