[]
        
(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)
Public Shared Function Create(factory As Factory1) As DrawingStateBlock1
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)
Public Shared Function Create(factory As Factory1, drawingStateDescription As DrawingStateDescription1) As DrawingStateBlock1
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)
Public Shared Function Create(factory As Factory1, textRenderingParams As RenderingParams) As DrawingStateBlock1
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)
Public Shared Function Create(factory As Factory1, drawingStateDescription As DrawingStateDescription1, textRenderingParams As RenderingParams) As DrawingStateBlock1
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