[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.DrawingStateBlock1.Create

Create Method

Create(Factory1)

Creates an DrawingStateBlock1 that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.

Declaration
public static DrawingStateBlock1 Create(Factory1 factory)
Parameters
Type Name Description
Factory1 factory

an instance of Factory1

Returns
Type Description
DrawingStateBlock1

Create(Factory1, DrawingStateDescription1)

Creates an DrawingStateBlock1 that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.

Declaration
public static DrawingStateBlock1 Create(Factory1 factory, DrawingStateDescription1 drawingStateDescription)
Parameters
Type Name Description
Factory1 factory

an instance of Factory1

DrawingStateDescription1 drawingStateDescription

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

Returns
Type Description
DrawingStateBlock1

Create(Factory1, RenderingParams)

Creates an DrawingStateBlock1 that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.

Declaration
public static DrawingStateBlock1 Create(Factory1 factory, RenderingParams textRenderingParams)
Parameters
Type Name Description
Factory1 factory

an instance of Factory1

RenderingParams textRenderingParams

Optional text parameters that indicate how text should be rendered.

Returns
Type Description
DrawingStateBlock1

Create(Factory1, DrawingStateDescription1, RenderingParams)

Creates an DrawingStateBlock1 that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.

Declaration
public static DrawingStateBlock1 Create(Factory1 factory, DrawingStateDescription1 drawingStateDescription, RenderingParams textRenderingParams)
Parameters
Type Name Description
Factory1 factory

an instance of Factory1

DrawingStateDescription1 drawingStateDescription

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

RenderingParams textRenderingParams

Optional text parameters that indicate how text should be rendered.

Returns
Type Description
DrawingStateBlock1