Table of Contents

Class SvgImage

Namespace
Svg
Assembly
Svg.dll

Represents and SVG image

[SvgElement("image")]
public class SvgImage : SvgVisualElement, ISvgTransformable, ICloneable, ISvgNode, ISvgStylable, ISvgBoundable, ISvgClipable
Inheritance
SvgImage
Implements
Inherited Members
Extension Methods

Properties

AspectRatio

Gets or sets the aspect of the viewport.

public SvgAspectRatio AspectRatio { get; set; }

Property Value

SvgAspectRatio

Bounds

Gets the bounds of the element.

public override RectangleF Bounds { get; }

Property Value

RectangleF

The bounds.

Height

public virtual SvgUnit Height { get; set; }

Property Value

SvgUnit

Href

[SvgAttribute("href", "http://www.w3.org/1999/xlink")]
public virtual string Href { get; set; }

Property Value

string

Location

Gets an SvgPoint representing the top left point of the rectangle.

public SvgPoint Location { get; }

Property Value

SvgPoint

Width

public virtual SvgUnit Width { get; set; }

Property Value

SvgUnit

X

public virtual SvgUnit X { get; set; }

Property Value

SvgUnit

Y

public virtual SvgUnit Y { get; set; }

Property Value

SvgUnit

Methods

DeepCopy()

public override SvgElement DeepCopy()

Returns

SvgElement

GetImage()

public object GetImage()

Returns

object

GetImage(string)

public object GetImage(string uriString)

Parameters

uriString string

Returns

object

Path(ISvgRenderer)

Gets the GraphicsPath for this element.

public override GraphicsPath Path(ISvgRenderer renderer)

Parameters

renderer ISvgRenderer

Returns

GraphicsPath

Render(ISvgRenderer)

Renders the SvgElement and contents to the specified Graphics object.

protected override void Render(ISvgRenderer renderer)

Parameters

renderer ISvgRenderer