combine method

combine

Combines this geometry with another SVG geometry using a boolean operation, and returns a new <path> element containing the result.

Returns

A new SVGPathElement whose d attribute encodes the result in root <svg> user space (CSS px). The element is not appended to the DOM.

def combine(self, geometry_element, op):
    ...
ParameterTypeDescription
geometry_elementSVGGeometryElementThe other geometry to combine with. Must be in the same document.
opaspose.svg.rendering.BooleanPathOpThe boolean operator to apply: Union (A UNION B), Difference (A - B),
Intersection (A INTERSECT B), or Exclusion (XOR).

Exceptions

ExceptionDescription
ArgumentNullExceptionThrown if geometry_element is null.
InvalidOperationExceptionThrown if this element has no owner document.
NotSupportedExceptionThrown when boolean path operations are unavailable; this feature requires the SkiaSharp backend (install the Aspose.SVG.Drawing.SkiaSharp package).

See Also