com.groupdocs.editor.htmlcss.resources.images.vector

Class SvgImage

    • Constructor Detail

      • SvgImage

        public SvgImage(String name,
                InputStream binaryContent)

        Creates new SvgImage instance from content, represented as byte stream, and with specified name

        Parameters:
        name - Name of the SVG image. Cannot be null, empty or whitespaces.
        binaryContent - Content as byte stream. Reading begins from original position. Cannot be null. Should be readable and seekable. If this instance will be disposed, this stream will be disposed too.
        Throws:
        com.aspose.ms.System.ArgumentException
        com.groupdocs.editor.htmlcss.exceptions.InvalidImageFormatException
      • SvgImage

        public SvgImage(String name,
                com.aspose.ms.System.IO.Stream binaryContent)
      • SvgImage

        public SvgImage(String name,
                String content)

        Creates new SvgImage instance from content, represented as usual string, and with specified name

        Parameters:
        name - Name of the SVG image. Cannot be null, empty or whitespaces.
        content - Content as a usual string. Cannot be null, empty or whitespaces. If it is not a SVG content, exception will be thrown.