[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.DrawingStateBlock.Create

Create Method

Create(Factory)

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

Declaration
public static DrawingStateBlock Create(Factory factory)
Parameters
Type Name Description
Factory factory

an instance of Factory

Returns
Type Description
DrawingStateBlock

Create(Factory, DrawingStateDescription)

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

Declaration
public static DrawingStateBlock Create(Factory factory, DrawingStateDescription drawingStateDescription)
Parameters
Type Name Description
Factory factory

an instance of Factory

DrawingStateDescription drawingStateDescription

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

Returns
Type Description
DrawingStateBlock

Create(Factory, RenderingParams)

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

Declaration
public static DrawingStateBlock Create(Factory factory, RenderingParams textRenderingParams)
Parameters
Type Name Description
Factory factory

an instance of Factory

RenderingParams textRenderingParams

Optional text parameters that indicate how text should be rendered.

Returns
Type Description
DrawingStateBlock

Create(Factory, DrawingStateDescription?, RenderingParams)

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

Declaration
public static DrawingStateBlock Create(Factory factory, DrawingStateDescription? drawingStateDescription, RenderingParams textRenderingParams)
Parameters
Type Name Description
Factory factory

an instance of Factory

DrawingStateDescription? 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
DrawingStateBlock