Multiple Transforms Example

This topic contains the following sections:

  • Description
  • Requirements
  • View the Example Files

Description

This sample shows the order of multiple transforms can affect rendering results. The following diagram shows a square being rotated 45 degrees about the center of the square and then being translated (20, 10).

Diagram of a square being rotated and then translated

The following diagram shows the same square being translated (20, 10), and then being rotated 45 degrees about the center of the square. Notice the different rendering results.

Diagram of a square being translated and then rotated

Requirements

Minimum supported client Windows 7 or Windows Vista with Service Pack 2 (SP2) and Platform Update for Windows Vista
Minimum supported server Windows Server 2008 R2 or Windows Server 2008 with Service Pack 2 (SP2) and Platform Update for Windows Server 2008
Windows SDK Windows Software Development Kit (SDK) for Windows 7

 

View the Example Files

File
MultipleTransformsExample.vcproj
DemoApp.h
DemoApp.cpp
DeclareDPIAware.manifest

 

 

 

Send comments about this topic to Microsoft

Build date: 1/22/2012