SvgImage

SvgImage class

Represents an SVG image.

SvgImage

NameDescription
SvgImage(byte[])Creates new SvgImage object.

Parameters:

NameTypeDescription
databyte[]Svg data.

Returns: SvgImage


SvgImage

NameDescription
SvgImage(String)Creates new SvgImage object.

Parameters:

NameTypeDescription
svgContentStringSvg content.

Returns: SvgImage


SvgImage

NameDescription
SvgImage(InputStream)Creates new SvgImage object.

Parameters:

NameTypeDescription
streamInputStreamSvg stream.

Returns: SvgImage


SvgImage

NameDescription
SvgImage(byte[], HtmlExternalResolver, String)Creates new SvgImage object.

Parameters:

NameTypeDescription
databyte[]Svg data.
externalResResolverHtmlExternalResolverA callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
baseUriStringBase URI of the specified Svg. Used to resolve relative links.

Returns: SvgImage


SvgImage

NameDescription
SvgImage(byte[], ExternalResourceResolver, String)Creates new SvgImage object.

Parameters:

NameTypeDescription
databyte[]Svg data.
externalResResolverExternalResourceResolverA callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
baseUriStringBase URI of the specified Svg. Used to resolve relative links.

Returns: SvgImage


SvgImage

NameDescription
SvgImage(String, HtmlExternalResolver, String)Creates new SvgImage object.

Parameters:

NameTypeDescription
svgContentStringSvg content.
externalResResolverHtmlExternalResolverA callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
baseUriStringBase URI of the specified Svg. Used to resolve relative links.

Returns: SvgImage


SvgImage

NameDescription
SvgImage(String, ExternalResourceResolver, String)Creates new SvgImage object.

Parameters:

NameTypeDescription
svgContentStringSvg content.
externalResResolverExternalResourceResolverA callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
baseUriStringBase URI of the specified Svg. Used to resolve relative links.

Returns: SvgImage


SvgImage

NameDescription
SvgImage(InputStream, HtmlExternalResolver, String)Creates new SvgImage object.

Parameters:

NameTypeDescription
streamInputStreamSvg stream.
externalResResolverHtmlExternalResolverA callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
baseUriStringBase URI of the specified Svg. Used to resolve relative links.

Returns: SvgImage


SvgImage

NameDescription
SvgImage(InputStream, ExternalResourceResolver, String)Creates new SvgImage object.

Parameters:

NameTypeDescription
streamInputStreamSvg stream.
externalResResolverExternalResourceResolverA callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
baseUriStringBase URI of the specified Svg. Used to resolve relative links.

Returns: SvgImage


getBaseUri

NameDescription
getBaseUri ()Returns base URI of the specified Svg. Used to resolve relative links. Read-only String.

Returns: String


getExternalResourceResolver

NameDescription
getExternalResourceResolver ()Return callback interface used to resolve external resources during Svg documents import. Read-only IExternalResourceResolver.

Returns: HtmlExternalResolver, ExternalResourceResolver


getSvgContent

NameDescription
getSvgContent ()Returns SVG content. Read-only String.

Returns: String


getSvgData

NameDescription
getSvgData ()Returns SVG data. Read-only byte[].

Returns: byte