IDCompositionDesktopDevice

Serves as the root factory for all other desktop DirectComposition objects.

Members

Functions

CreateSurfaceFromHandle
HRESULT CreateSurfaceFromHandle(HANDLE handle, IUnknown* surface)

Creates a surface wrapper around a pre-existing surface that can be associated with one or more visuals for composition.

CreateSurfaceFromHwnd
HRESULT CreateSurfaceFromHwnd(HWND hwnd, IUnknown* surface)

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

Inherited Members

From IDCompositionDevice2

Commit
HRESULT Commit()

Commits all DirectComposition commands pending on this device.

WaitForCommitCompletion
HRESULT WaitForCommitCompletion()

Waits for the last Commit to be processed by the composition engine

GetFrameStatistics
HRESULT GetFrameStatistics(DCOMPOSITION_FRAME_STATISTICS* statistics)

Gets timing information about the composition engine.

CreateVisual
HRESULT CreateVisual(IDCompositionVisual2* visual)

Creates a new visual object.

CreateSurfaceFactory
HRESULT CreateSurfaceFactory(IUnknown renderingDevice, IDCompositionSurfaceFactory* surfaceFactory)

Creates a factory for surface objects

CreateSurface
HRESULT CreateSurface(UINT width, UINT height, DXGI_FORMAT pixelFormat, DXGI_ALPHA_MODE alphaMode, IDCompositionSurface* surface)

Creates a DirectComposition surface object

CreateVirtualSurface
HRESULT CreateVirtualSurface(UINT initialWidth, UINT initialHeight, DXGI_FORMAT pixelFormat, DXGI_ALPHA_MODE alphaMode, IDCompositionVirtualSurface* virtualSurface)

Creates a DirectComposition virtual surface object

CreateTranslateTransform
HRESULT CreateTranslateTransform(IDCompositionTranslateTransform* translateTransform)

Creates a 2D translation transform object.

CreateScaleTransform
HRESULT CreateScaleTransform(IDCompositionScaleTransform* scaleTransform)

Creates a 2D scale transform object.

CreateRotateTransform
HRESULT CreateRotateTransform(IDCompositionRotateTransform* rotateTransform)

Creates a 2D rotation transform object.

CreateSkewTransform
HRESULT CreateSkewTransform(IDCompositionSkewTransform* skewTransform)

Creates a 2D skew transform object.

CreateMatrixTransform
HRESULT CreateMatrixTransform(IDCompositionMatrixTransform* matrixTransform)

Creates a 2D 3x2 matrix transform object.

CreateTransformGroup
HRESULT CreateTransformGroup(IDCompositionTransform* transforms, UINT elements, IDCompositionTransform* transformGroup)

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

CreateTranslateTransform3D
HRESULT CreateTranslateTransform3D(IDCompositionTranslateTransform3D* translateTransform3D)

Creates a 3D translation transform object.

CreateScaleTransform3D
HRESULT CreateScaleTransform3D(IDCompositionScaleTransform3D* scaleTransform3D)

Creates a 3D scale transform object.

CreateRotateTransform3D
HRESULT CreateRotateTransform3D(IDCompositionRotateTransform3D* rotateTransfrom3D)

Creates a 3D rotation transform object.

CreateMatrixTransform3D
HRESULT CreateMatrixTransform3D(IDCompositionMatrixTransform3D* matrixTransform3D)

Creates a 3D 4x4 matrix transform object.

CreateTransform3DGroup
HRESULT CreateTransform3DGroup(IDCompositionTransform3D* transforms3D, UINT elements, IDCompositionTransform3D* transform3DGroup)

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

CreateEffectGroup
HRESULT CreateEffectGroup(IDCompositionEffectGroup* effectGroup)

Creates an effect group

CreateRectangleClip
HRESULT CreateRectangleClip(IDCompositionRectangleClip* clip)

Creates a clip object that can be used to clip the contents of a visual subtree.

CreateAnimation
HRESULT CreateAnimation(IDCompositionAnimation animation)

Creates an animation object

Meta