Direct2D Clock Sample

This sample application shows how to use transforms in Direct2D to draw the hands of a clock.


The Direct2D Clock sample application draws an analog clock, as shown in the screen shot that follows. This sample is discussed in Applying Transforms in Direct2D.


A screen shot of the Clock program.

A screen shot of the Clock program.


Downloading the Sample

This sample is available in the MSDN Code Gallery at

Related Topics

Learn to Program for Windows: Sample Code
Applying Transforms in Direct2D
Module 3: Windows Graphics



Send comments about this topic to Microsoft

Build date: 10/5/2010

Community Additions