Table of Contents

Class DrawingStateBlock

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll
[Guid("28506e39-ebf6-46a1-bb47-fd85565ab957")]
public class DrawingStateBlock : Resource
Inheritance
DrawingStateBlock
Derived
Inherited Members

Constructors

DrawingStateBlock(Factory)

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

public DrawingStateBlock(Factory factory)

Parameters

factory Factory

an instance of Factory

DrawingStateBlock(Factory, DrawingStateDescription)

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

public DrawingStateBlock(Factory factory, DrawingStateDescription drawingStateDescription)

Parameters

factory Factory

an instance of Factory

drawingStateDescription DrawingStateDescription

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

DrawingStateBlock(Factory, RenderingParams)

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

public DrawingStateBlock(Factory factory, RenderingParams textRenderingParams)

Parameters

factory Factory

an instance of Factory

textRenderingParams RenderingParams

Optional text parameters that indicate how text should be rendered.

DrawingStateBlock(Factory, DrawingStateDescription?, RenderingParams)

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

public DrawingStateBlock(Factory factory, DrawingStateDescription? drawingStateDescription, RenderingParams textRenderingParams)

Parameters

factory Factory

an instance of Factory

drawingStateDescription DrawingStateDescription?

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

textRenderingParams RenderingParams

Optional text parameters that indicate how text should be rendered.

DrawingStateBlock(nint)

public DrawingStateBlock(nint nativePtr)

Parameters

nativePtr nint

Properties

Description

Retrieves or sets the antialiasing mode, transform, and tags portion of the drawing state.

public DrawingStateDescription Description { get; set; }

Property Value

DrawingStateDescription

TextRenderingParams

Retrieves or sets the text-rendering configuration of the drawing state.

public RenderingParams TextRenderingParams { get; set; }

Property Value

RenderingParams

Operators

explicit operator DrawingStateBlock(nint)

public static explicit operator DrawingStateBlock(nint nativePtr)

Parameters

nativePtr nint

Returns

DrawingStateBlock