Table of Contents

Class ClipPathSvgNodeRenderer

Namespace
iText.Svg.Renderers.Impl
Assembly
itext.svg.dll

This renderer represents a collection of elements (simple shapes and paths).

public class ClipPathSvgNodeRenderer : AbstractBranchSvgNodeRenderer, IBranchSvgNodeRenderer, ISvgNodeRenderer
Inheritance
ClipPathSvgNodeRenderer
Implements
Inherited Members

Remarks

This renderer represents a collection of elements (simple shapes and paths). The elements are not drawn visibly, but the union of their shapes will be used to only show the parts of the drawn objects that fall within the clipping path. In PDF, the clipping path operators use the intersection of all its elements, not the union (as in SVG); thus, we need to draw the clipped elements multiple times if the clipping path consists of multiple elements.

Constructors

ClipPathSvgNodeRenderer()

public ClipPathSvgNodeRenderer()

Methods

CreateDeepCopy()

public override ISvgNodeRenderer CreateDeepCopy()

Returns

ISvgNodeRenderer

DoDraw(SvgDrawContext)

protected override void DoDraw(SvgDrawContext context)

Parameters

context SvgDrawContext

GetObjectBoundingBox(SvgDrawContext)

public override Rectangle GetObjectBoundingBox(SvgDrawContext context)

Parameters

context SvgDrawContext

Returns

Rectangle

SetClippedRenderer(AbstractSvgNodeRenderer)

public virtual void SetClippedRenderer(AbstractSvgNodeRenderer clippedRenderer)

Parameters

clippedRenderer AbstractSvgNodeRenderer