Table of Contents

Interface IMarkerCapable

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

Interface implemented by elements that support marker drawing.

public interface IMarkerCapable

Remarks

Interface implemented by elements that support marker drawing. Defines methods for working with markers.

Methods

DrawMarker(SvgDrawContext, MarkerVertexType)

Draws a marker in the specified context.

void DrawMarker(SvgDrawContext context, MarkerVertexType markerVertexType)

Parameters

context SvgDrawContext

the object that knows the place to draw this element and maintains its state

markerVertexType MarkerVertexType

type of marker that determine on which vertices of the given element marker should be drawn

Remarks

Draws a marker in the specified context. The marker is drawn on the vertices defined according to the given marker type.

GetAutoOrientAngle(MarkerSvgNodeRenderer, bool)

Calculates marker orientation angle if orient attribute is set to auto

double GetAutoOrientAngle(MarkerSvgNodeRenderer marker, bool reverse)

Parameters

marker MarkerSvgNodeRenderer

marker for which the rotation angle should be calculated

reverse bool

indicates that the resulting angle should be rotated 180 degrees

Returns

double

marker orientation angle so that its positive x-axis is pointing in the direction of the path at the point it is placed