Geometry.Combine Method (Geometry, Geometry, GeometryCombineMode, Transform, Double, ToleranceType)
Combines the two geometries using the specified GeometryCombineMode and tolerance factor, and applies the specified transform to the resulting geometry.
Assembly: PresentationCore (in PresentationCore.dll)
public static PathGeometry Combine( Geometry geometry1, Geometry geometry2, GeometryCombineMode mode, Transform transform, double tolerance, ToleranceType type )
The first geometry to combine.
The second geometry to combine.
One of the enumeration values that specifies how the geometries are combined.
A transformation to apply to the combined geometry, or null.
The maximum bounds on the distance between points in the polygonal approximation of the geometries. Smaller values produce more accurate results but cause slower execution. If tolerance is less than .000001, .000001 is used instead.
Return ValueType: System.Windows.Media.PathGeometry
The combined geometry.
Some Geometry methods (such as Combine) produce or use a polygonal approximation of the geometry. The tolerance factor specifies the maximum distance between points in this polygonal approximation. Smaller tolerance values produce better approximations, but require more processing than an approximation with a large tolerance factor.
Useonly when any of the following apply:
The geometric operation is not a union.
Time is not a concern, but space is (for instance, if the geometry is created once and then cached). Typically, AddGeometry.produces smaller output than
The resulting geometry will be stroked or used in a path animation and AddGeometry does not provide the desired outline.
Available since 3.0