Table of Contents

Class GeometryRealization

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll

Encapsulates a device- and transform-dependent representation of a filled or stroked geometry. Callers should consider creating a geometry realization when they wish to accelerate repeated rendering of a given geometry. This interface exposes no methods.

[Guid("a16907d7-bc02-4801-99e8-8cf7f485f774")]
public class GeometryRealization : Resource
Inheritance
GeometryRealization
Inherited Members

Constructors

GeometryRealization(DeviceContext1, Geometry, float)

Creates a device-dependent representation of the fill of the geometry that can be subsequently rendered.

public GeometryRealization(DeviceContext1 context, Geometry geometry, float flatteningTolerance)

Parameters

context DeviceContext1

The device context where the created instance should be attached to.

geometry Geometry

The geometry to realize.

flatteningTolerance float

The flattening tolerance to use when converting Beziers to line segments. This parameter shares the same units as the coordinates of the geometry.

Remarks

This method is used in conjunction with DrawGeometryRealization(GeometryRealization, Brush). The D2D1::ComputeFlatteningTolerance helper API may be used to determine the proper flattening tolerance.

If the provided stroke style specifies a stroke transform type other than Normal, then the stroke will be realized assuming the identity transform and a DPI of 96.

GeometryRealization(DeviceContext1, Geometry, float, float, StrokeStyle)

Creates a device-dependent representation of the stroke of a geometry that can be subsequently rendered.

public GeometryRealization(DeviceContext1 context, Geometry geometry, float flatteningTolerance, float strokeWidth, StrokeStyle strokeStyle)

Parameters

context DeviceContext1

The device context where the created instance should be attached to.

geometry Geometry

The geometry to realize.

flatteningTolerance float

The flattening tolerance to use when converting Beziers to line segments. This parameter shares the same units as the coordinates of the geometry.

strokeWidth float

The width of the stroke. This parameter shares the same units as the coordinates of the geometry.

strokeStyle StrokeStyle

The stroke style (optional).

Remarks

This method is used in conjunction with DrawGeometryRealization(GeometryRealization, Brush). The D2D1::ComputeFlatteningTolerance helper API may be used to determine the proper flattening tolerance.

If the provided stroke style specifies a stroke transform type other than Normal, then the stroke will be realized assuming the identity transform and a DPI of 96.

GeometryRealization(nint)

public GeometryRealization(nint nativePtr)

Parameters

nativePtr nint

Operators

explicit operator GeometryRealization(nint)

public static explicit operator GeometryRealization(nint nativePtr)

Parameters

nativePtr nint

Returns

GeometryRealization