Direct2D samples
The following samples demonstrate the Direct2D API.
Windows 10 and Microsoft Visual Studio 2015 samples
Sample | Description |
---|---|
Direct2D custom image effects sample | This sample demonstrates how to implement Custom effects using HLSL pixel, vertex, and compute shaders. |
Direct2D gradient mesh sample | This sample demonstrates how to instantiate and render a gradient mesh in Direct2D. This samples uses the helper method provided by Direct2D to create a mesh consisting of two tensor patches that share a side. |
Direct2D photo adjustment sample | This sample demonstrates how to build a photo viewer and editor using Direct2D and Direct2D Effects. |
Windows 8 and Microsoft Visual Studio 2013 samples
Sample | Description |
---|---|
Direct2D composite effect modes sample | This sample shows the wide range of composite and blend modes available from Direct2D. |
Direct2D basic image effects sample | This sample shows how to load an image, apply the Gaussian blur effect to it, and then display it in a Windows::UI::Core::CoreWindow. |
JPEG YCbCr optimizations in Direct2D and WIC sample | Demonstrates performance optimizations in Direct2D and the Windows Imaging Component rendering image data in the JPEG YCbCr format natively. |
DirectX postcard app sample | This sample demonstrates the end-to-end implementation of a simple Windows Store app using DirectX with C++ for postcard creation using DirectX and XAML interop. |