Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DrawingStateDescription1 function

Creates a D2D1_DRAWING_STATE_DESCRIPTION1 structure.

Syntax


D2D1_DRAWING_STATE_DESCRIPTION1 DrawingStateDescription1(
             D2D1_ANTIALIAS_MODE      antialiasMode = D2D1_ANTIALIAS_MODE_PER_PRIMITIVE,
             D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode = D2D1_TEXT_ANTIALIAS_MODE_DEFAULT,
             D2D1_TAG                 tag1 = 0,
             D2D1_TAG                 tag2 = 0,
  _In_ const D2D1_MATRIX_3X2_F        &transform =  D2D1::IdentityMatrix(),
             D2D1_PRIMITIVE_BLEND     primitiveBlend = 
                D2D1_PRIMITIVE_BLEND_SOURCE_OVER,
             D2D1_UNIT_MODE           unitMode = 
                D2D1_UNIT_MODE_DIPS
);

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.

transform [in, ref]

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

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1_1helper.h

Library

D2d1.lib

DLL

D2d1.dll

 

 

Show:
© 2017 Microsoft