[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.GeometryRealization.Create

Create Method

Create(DeviceContext1, Geometry, float)

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

Declaration
public static GeometryRealization Create(DeviceContext1 context, Geometry geometry, float flatteningTolerance)
Parameters
Type Name Description
DeviceContext1 context

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

Geometry geometry

The geometry to realize.

float flatteningTolerance

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

Returns
Type Description
GeometryRealization

Create(DeviceContext1, Geometry, float, float, StrokeStyle)

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

Declaration
public static GeometryRealization Create(DeviceContext1 context, Geometry geometry, float flatteningTolerance, float strokeWidth, StrokeStyle strokeStyle)
Parameters
Type Name Description
DeviceContext1 context

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

Geometry geometry

The geometry to realize.

float flatteningTolerance

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

float strokeWidth

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

StrokeStyle strokeStyle

The stroke style (optional).

Returns
Type Description
GeometryRealization