DrawingStateDescription1 function (d2d1_1helper.h)

Creates a D2D1_DRAWING_STATE_DESCRIPTION1 structure.

Syntax

D2D1_DRAWING_STATE_DESCRIPTION1 DrawingStateDescription1(
            D2D1_ANTIALIAS_MODE       antialiasMode,
            D2D1_TEXT_ANTIALIAS_MODE  textAntialiasMode,
            D2D1_TAG                  tag1,
            D2D1_TAG                  tag2,
  [in, ref] const D2D1_MATRIX_3X2_F & transform,
            D2D1_PRIMITIVE_BLEND      primitiveBlend,
            D2D1_UNIT_MODE            unitMode
);

Parameters

antialiasMode

Type: D2D1_ANTIALIAS_MODE

The antialiasing mode for subsequent non-text drawing operations. The default value is D2D1_ANTIALIAS_MODE_PER_PRIMITIVE.

textAntialiasMode

Type: D2D1_TEXT_ANTIALIAS_MODE

The antialiasing mode for subsequent text and glyph drawing operations. The default value is D2D1_TEXT_ANTIALIAS_MODE_DEFAULT.

tag1

Type: D2D1_TAG

A label for subsequent drawing operations. The default value is 0.

tag2

Type: D2D1_TAG

A label for subsequent drawing operations. The default value is 0.

[in, ref] transform

Type: const D2D1_MATRIX_3X2_F

The transformation to be applied to subsequent drawing operations. The default value is provided by the D2D1::IdentityMatrix function, which returns the identity matrix.

primitiveBlend

Type: D2D1_PRIMITIVE_BLEND

The blend mode of the Direct2D device context.

unitMode

Type: D2D1_UNIT_MODE

The unit mode of the drawing operations. The default is DIPs.

Return value

Type: D2D1_DRAWING_STATE_DESCRIPTION1

A structure that describes the drawing state of a render target.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1_1helper.h
Library D2d1.lib
DLL D2d1.dll