com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class SvgImage

  • java.lang.Object
    • com.aspose.slides.SvgImage
  • All Implemented Interfaces:
    ISvgImage


    public class SvgImage
    extends java.lang.Object
    implements ISvgImage

    Represents an SVG image.

    • Constructor Detail

      • SvgImage

        public SvgImage(byte[] data)

        Creates new SvgImage object.

        Parameters:
        data - Svg data.
      • SvgImage

        public SvgImage(java.lang.String svgContent)

        Creates new SvgImage object.

        Parameters:
        svgContent - Svg content.
      • SvgImage

        public SvgImage(java.io.InputStream stream)

        Creates new SvgImage object.

        Parameters:
        stream - Svg stream.
      • SvgImage

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

        Creates new SvgImage object.

        Parameters:
        data - Svg data.
        externalResResolver - A callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
        baseUri - Base URI of the specified Svg. Used to resolve relative links.
      • SvgImage

        public SvgImage(java.lang.String svgContent,
                        IExternalResourceResolver externalResResolver,
                        java.lang.String baseUri)

        Creates new SvgImage object.

        Parameters:
        svgContent - Svg content.
        externalResResolver - A callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
        baseUri - Base URI of the specified Svg. Used to resolve relative links.
      • SvgImage

        public SvgImage(java.io.InputStream stream,
                        IExternalResourceResolver externalResResolver,
                        java.lang.String baseUri)

        Creates new SvgImage object.

        Parameters:
        stream - Svg stream.
        externalResResolver - A callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
        baseUri - Base URI of the specified Svg. Used to resolve relative links.
    • Method Detail

      • getSvgData

        public final byte[] getSvgData()

        Returns SVG data. Read-only byte[].

        Specified by:
        getSvgData in interface ISvgImage
      • getBaseUri

        public final java.lang.String getBaseUri()

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

        Specified by:
        getBaseUri in interface ISvgImage
      • getSvgContent

        public final java.lang.String getSvgContent()

        Returns SVG content. Read-only String.

        Specified by:
        getSvgContent in interface ISvgImage