Share via


ID2D1Factory3::CreateDrawingStateBlock method

[This documentation is preliminary and is subject to change.]

Creates an ID2D1DrawingStateBlock2 that can be used with the SaveDrawingState and RestoreDrawingState methods of a device context.

Syntax

HRESULT CreateDrawingStateBlock(
  const D2D1_DRAWING_STATE_DESCRIPTION2 &drawingStateDescription,
  [out]  ID2D1DrawingStateBlock2 **drawingStateBlock
);

Parameters

  • drawingStateDescription [ref]
    Type: const D2D1_DRAWING_STATE_DESCRIPTION2

    A structure that contains antialiasing, transform, and tags information.

  • drawingStateBlock [out]
    Type: ID2D1DrawingStateBlock2**

    When this method returns, contains the address of a pointer to the new drawing state block created by this method.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Header

D2d1_3.h

Library

D2d1_3.lib

DLL

D2d1_3.dll

See also

ID2D1Factory3