Table of Contents

Method CreateFilledGeometryRealization

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

CreateFilledGeometryRealization(IGeometry, float?)

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

IGeometryRealization CreateFilledGeometryRealization(IGeometry geometry, float? flatteningTolerance = null)

Parameters

geometry IGeometry

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. If null, Default will be used.

Returns

IGeometryRealization

The new geometry realization object.

Remarks

This method is used in conjunction with DrawGeometryRealization(IGeometryRealization, IDeviceBrush). The Compute(in Matrix3x2Float, Vector2Float, float) 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.