SvgImage

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.ISvgImage

public class SvgImage implements ISvgImage

Represents an SVG image.

Constructors

ConstructorDescription
SvgImage(byte[] data)Creates new SvgImage object.
SvgImage(String svgContent)Creates new SvgImage object.
SvgImage(InputStream stream)Creates new SvgImage object.
SvgImage(byte[] data, IExternalResourceResolver externalResResolver, String baseUri)Creates new SvgImage object.
SvgImage(String svgContent, IExternalResourceResolver externalResResolver, String baseUri)Creates new SvgImage object.
SvgImage(InputStream stream, IExternalResourceResolver externalResResolver, String baseUri)Creates new SvgImage object.

Methods

MethodDescription
getSvgData()Returns SVG data.
getExternalResourceResolver()Return callback interface used to resolve external resources during Svg documents import.
getBaseUri()Returns base URI of the specified Svg.
getSvgContent()Returns SVG content.

SvgImage(byte[] data)

public SvgImage(byte[] data)

Creates new SvgImage object.

Parameters:

ParameterTypeDescription
databyte[]Svg data.

SvgImage(String svgContent)

public SvgImage(String svgContent)

Creates new SvgImage object.

Parameters:

ParameterTypeDescription
svgContentjava.lang.StringSvg content.

SvgImage(InputStream stream)

public SvgImage(InputStream stream)

Creates new SvgImage object.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamSvg stream.

SvgImage(byte[] data, IExternalResourceResolver externalResResolver, String baseUri)

public SvgImage(byte[] data, IExternalResourceResolver externalResResolver, String baseUri)

Creates new SvgImage object.

Parameters:

ParameterTypeDescription
databyte[]Svg data.
externalResResolverIExternalResourceResolverA callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
baseUrijava.lang.StringBase URI of the specified Svg. Used to resolve relative links.

SvgImage(String svgContent, IExternalResourceResolver externalResResolver, String baseUri)

public SvgImage(String svgContent, IExternalResourceResolver externalResResolver, String baseUri)

Creates new SvgImage object.

Parameters:

ParameterTypeDescription
svgContentjava.lang.StringSvg content.
externalResResolverIExternalResourceResolverA callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
baseUrijava.lang.StringBase URI of the specified Svg. Used to resolve relative links.

SvgImage(InputStream stream, IExternalResourceResolver externalResResolver, String baseUri)

public SvgImage(InputStream stream, IExternalResourceResolver externalResResolver, String baseUri)

Creates new SvgImage object.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamSvg stream.
externalResResolverIExternalResourceResolverA callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
baseUrijava.lang.StringBase URI of the specified Svg. Used to resolve relative links.

getSvgData()

public final byte[] getSvgData()

Returns SVG data. Read-only byte[].

Returns: byte[]

getExternalResourceResolver()

public final IExternalResourceResolver getExternalResourceResolver()

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

Returns: IExternalResourceResolver

getBaseUri()

public final String getBaseUri()

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

Returns: java.lang.String

getSvgContent()

public final String getSvgContent()

Returns SVG content. Read-only String.

Returns: java.lang.String