Rotated Text Using LogFont Sample

Shows how to draw rotated text by creating a font from a LogFont structure. Also demonstrates how to make an application that is high DPI aware and can respond to screen orientation changes.

For information about using the samples, see the following topics:

To build and deploy the sample using Visual Studio

  1. Open Windows Explorer and navigate to one of the language-specific subdirectories for this sample.

  2. Double-click the solutions (.sln) file for this sample.

  3. Press F5 to compile and run the sample.

  4. Deploy to the device or emulator.

Requirements

This sample requires compilation with the hidpi.res file, which is done by default in Visual Studio.

The .NET Compact Framework is required to build or run the sample. See How to: Install the .NET Compact Framework for installation instructions.

Demonstrates

LogFont, rotated text, screen orientation changes, AutoScaleMode.

See Also

Reference

LogFont