IDCompositionDevice 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 IDCompositionDevice interface; custom implementations are not supported.

Members

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

Methods

The IDCompositionDevice interface has these methods.

MethodDescription
CheckDeviceState

Determines whether the DirectComposition device object is still valid.

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.

CreateSurfaceFromHandle

Creates a new composition surface object that wraps an existing composition surface.

CreateSurfaceFromHwnd

Creates a wrapper object that represents the rasterization of a layered window, and that can be associated with a visual for composition.

CreateTargetForHwnd

Creates a composition target object that is bound to the window that is represented by the specified window handle (HWND).

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 IDCompositionDevice::Commit method.

 

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Dcomp.h

Library

Dcomp.lib

DLL

Dcomp.dll

See also

DCompositionCreateDevice

 

 

Community Additions

ADD
Show:
© 2014 Microsoft