How to use DirectComposition

Note

For apps on Windows 10, we recommend using Windows.UI.Composition APIs instead of DirectComposition. For more info, see Modernize your desktop app using the Visual layer.

This section describes best practices for using the Microsoft DirectComposition API, and demonstrates how to use the API to accomplish several common tasks.

In this section

Topic Description
Best practices for DirectComposition
This topic describes best practices for using DirectComposition.
How to initialize DirectComposition
This topic demonstrates how to create and initialize the minimum set of DirectComposition objects needed to create a simple composition.
How to build a simple visual tree
This topic demonstrates how to build a simple DirectComposition visual tree. The example in this topic builds and composes a visual tree that consists of a root visual and three child visuals.
How to clip with a rectangle clip object
This topic demonstrates how to use a rectangle clip object to clip a visual or visual tree.
How to apply 2D transforms
This topic demonstrates how to apply 2D transforms to a visual by using DirectComposition.
How to apply effects
This topic demonstrates how to use DirectComposition to apply effects and 3D transformations to a visual.
How to apply animations
This topic demonstrates how to animate the properties of a visual by using DirectComposition.
How to animate the bitmap of a layered child window
This topic describes how to create and animate a visual that uses the bitmap of a layered child window as the visual's content.

DirectComposition