PathGeometry::CreateFromGeometry Method (Geometry^)


Creates a PathGeometry version of the specified Geometry.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

static PathGeometry^ CreateFromGeometry(
	Geometry^ geometry


Type: System.Windows.Media::Geometry^

The geometry from which to create a PathGeometry.

Return Value

Type: System.Windows.Media::PathGeometry^

A PathGeometry created from the current values of the specified Geometry.

If the specified geometry is animated, its current animated values are used when constructing the new PathGeometry (although the animations themselves are not copied). If the geometry is animated, the conversion may result in some loss of precision.

.NET Framework
Available since 3.0
Return to top