Table of Contents

Class StopSvgNodeRenderer

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

ISvgNodeRenderer implementation for the gradient <stop> tag.

public class StopSvgNodeRenderer : AbstractBranchSvgNodeRenderer, INoDrawSvgNodeRenderer, IBranchSvgNodeRenderer, ISvgNodeRenderer
Inheritance
StopSvgNodeRenderer
Implements
Inherited Members

Constructors

StopSvgNodeRenderer()

public StopSvgNodeRenderer()

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

GetOffset()

Evaluates the stop color offset value.

public virtual double GetOffset()

Returns

double

the stop color offset value in [0, 1] range

GetStopColor()

Evaluates the rgba array of the specified stop color.

public virtual float[] GetStopColor()

Returns

float[]

the array of 4 floats which contains the rgba value corresponding to the specified stop color

GetStopOpacity()

Evaluates the stop opacity of the specified stop color.

public virtual float GetStopOpacity()

Returns

float

the stop opacity value specified in the stop color