MSDN Docs / Samples / WPF HW Accel
Home

WPF Hardware Acceleration Samples

Explore how to leverage GPU hardware acceleration in Windows Presentation Foundation (WPF) applications. The samples below demonstrate techniques such as bitmap effects, real‑time rendering, and layered rendering using D3DImage, RenderTargetBitmap, and VisualBrush.

1. Simple 3D Rotation

Shows a rotating cube rendered with hardware acceleration. Uses Viewport3D and RotateTransform3D.

View Source Download

2. D3DImage Interop

Integrates Direct3D content inside a WPF UI using D3DImage. Demonstrates low‑latency video playback.

View Source Download

3. RenderTargetBitmap for Off‑screen Rendering

Renders a visual tree to a bitmap on the GPU and displays it as an image.

View Source Download