Table of Contents

Method CreateGeometryFromWpfGeometry

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.Framework.dll

CreateGeometryFromWpfGeometry(IDirect2DFactory, Geometry, float?)

Converts a WPF Geometry to a Direct2D IGeometry.

public static IGeometry CreateGeometryFromWpfGeometry(this IDirect2DFactory factory, Geometry wpfGeometry, float? flatteningTolerance = null)

Parameters

factory IDirect2DFactory
wpfGeometry Geometry
flatteningTolerance float?

Returns

IGeometry