Table of Contents

Interface ISvgPaintServer

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

Interface for working with paint servers.

public interface ISvgPaintServer : INoDrawSvgNodeRenderer, IBranchSvgNodeRenderer, ISvgNodeRenderer
Inherited Members

Remarks

Interface for working with paint servers. These are the elements that are referenced from the fill or stroke of an object.

Methods

CreateColor(SvgDrawContext, Rectangle, float, float)

Creates the Color that represents the corresponding paint server for specified object box.

Color CreateColor(SvgDrawContext context, Rectangle objectBoundingBox, float objectBoundingBoxMargin, float parentOpacity)

Parameters

context SvgDrawContext

the current svg draw context

objectBoundingBox Rectangle

the coloring object bounding box without any adjustments (additional stroke width or others)

objectBoundingBoxMargin float

the objectBoundingBoxMargin of the object bounding box to be colored (for example - the part of stroke width that exceeds the object bounding box, i.e. the half of stroke width value)

parentOpacity float

current parent opacity modifier

Returns

Color

the created color