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

Class VectorImageResourceBase

  • java.lang.Object
    • com.groupdocs.editor.htmlcss.resources.images.vector.VectorImageResourceBase
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      com.groupdocs.editor.handler.Event<com.groupdocs.editor.handler.EventHandler> Disposed 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      abstract void dispose()
      In implementing type should dispose this instance
      boolean equals(IHtmlResource other)
      Checks this instance with specified on reference equality.
      Ratio getAspectRatio()
      Returns aspect ratio of this vector image
      InputStream getByteContent()
      In implementing type should return a content of this vector image as byte stream
      String getFilenameWithExtension()
      Returns correct filename of this vector image, which consists of name and extension.
      Dimensions getLinearDimensions()
      Returns linear dimensions of this vector image (width and height)
      String getName()
      Returns name of this vector image.
      abstract String getTextContent()
      In implementing type should return a content of this vector image in text form: base64-encoded of XML regarding of image type
      abstract ImageType getType()
      In implementing type should return information about type of the vector image
      boolean isDisposed()
      Determines whether this raster image is disposed or not
      abstract void save(String fullPathToFile)
      In implementing type should save this image to the disk by specified path
      abstract void saveToPng(InputStream outputPngContent)
      In implementing type should save a current vector image to the raster PNG format into specified byte stream
    • Field Detail

      • Disposed

        public final com.groupdocs.editor.handler.Event<com.groupdocs.editor.handler.EventHandler> Disposed
    • Constructor Detail

      • VectorImageResourceBase

        public VectorImageResourceBase()
    • Method Detail

      • dispose

        public abstract void dispose()

        In implementing type should dispose this instance

        Specified by:
        dispose in interface com.groupdocs.editor.interfaces.IDisposable
      • equals

        public final boolean equals(IHtmlResource other)

        Checks this instance with specified on reference equality.

        Parameters:
        other - Other instance of vector image
        Returns:
        True if are equal, false if are unequal
      • getByteContent

        public InputStream getByteContent()

        In implementing type should return a content of this vector image as byte stream

        Specified by:
        getByteContent in interface IHtmlResource
        Returns:
      • getFilenameWithExtension

        public final String getFilenameWithExtension()

        Returns correct filename of this vector image, which consists of name and extension. Theoretically can differ from the name.

        Specified by:
        getFilenameWithExtension in interface IHtmlResource
        Returns:
      • getName

        public final String getName()

        Returns name of this vector image. Usually doesn't contain filename extension and theoretically can differ from filename.

        Specified by:
        getName in interface IHtmlResource
        Returns:
      • getTextContent

        public abstract String getTextContent()

        In implementing type should return a content of this vector image in text form: base64-encoded of XML regarding of image type

        Specified by:
        getTextContent in interface IHtmlResource
        Returns:
      • isDisposed

        public final boolean isDisposed()

        Determines whether this raster image is disposed or not

        Specified by:
        isDisposed in interface IAuxDisposable
        Returns:
      • save

        public abstract void save(String fullPathToFile)

        In implementing type should save this image to the disk by specified path

        Specified by:
        save in interface IHtmlResource
        Parameters:
        fullPathToFile -
      • saveToPng

        public abstract void saveToPng(InputStream outputPngContent)

        In implementing type should save a current vector image to the raster PNG format into specified byte stream

        Parameters:
        outputPngContent - Byte stream, into which the PNG version of this raster image will be stored. Should not be NULL and should support writing.