Export (0) Print
Expand All

How-to Topics

The topics in this section provide examples that show how to accomplish a variety of tasks with Direct2D.

In this section

TopicDescription

How to Clip to a Geometric Mask

Shows how to clip a region with layers.

How to Clip with Axis Aligned Rects

Shows how to clip a region with an axis-aligned clip rectangle.

How to Draw a Bitmap

Shows how to render bitmaps with Direct2D.

How to Draw and Fill a Basic Shape

This topic describes how to draw a basic shape.

How to Draw and Fill a Complex Shape

Direct2D provides the ID2D1PathGeometry interface for describing complex shapes that can contain curves, arcs, and lines. This topic describes how to define and render a path geometry.

How to Draw Text

Shows how to render text with Direct2D.

How to Ensure That Your Application Displays Properly on High-DPI Displays

Describes how to create a window the displays properly on high-DPI displays.

How to Load a Bitmap from a File

Shows how to load a Direct2D bitmap from an image file.

How to Load a Bitmap from a Resource

Shows how to load a Direct2D bitmap stored as an application resource.

How to Use a Bitmap as an Opacity Mask

Shows how to clip a region with bitmap masks.

 

 

 

Community Additions

ADD
Show:
© 2014 Microsoft