[]
        
(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)
Public Shared Function Create(factory As Factory) As DrawingStateBlock
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)
Public Shared Function Create(factory As Factory, drawingStateDescription As DrawingStateDescription) As DrawingStateBlock
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)
Public Shared Function Create(factory As Factory, textRenderingParams As RenderingParams) As DrawingStateBlock
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)
Public Shared Function Create(factory As Factory, drawingStateDescription As DrawingStateDescription?, textRenderingParams As RenderingParams) As DrawingStateBlock
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