com.aspose.note

Class Image

    • Constructor Detail

      • Image

        public Image(Document document,
                     String path)

        Initializes a new instance of the Image class.

        Parameters:
        document - A parent document of the image.
        path - A string that contains the path to the file from which to create the Image.
      • Image

        public Image(Document document,
                     String fileName,
                     String extension,
                     InputStream imageStream)

        Initializes a new instance of the Image class.

        Parameters:
        document - A parent document of the image.
        fileName - A name of the image.
        extension - An extension of the image.
        imageStream - A stream which contains the image.
    • Method Detail

      • getLastModifiedTime

        public Date getLastModifiedTime()

        Gets or sets last modified time.

      • setLastModifiedTime

        public void setLastModifiedTime(Date value)

        Gets or sets last modified time.

      • getWidth

        public float getWidth()

        Gets or sets the width. This is the real width of the image in the MS OneNote document.

      • setWidth

        public void setWidth(float value)

        Gets or sets the width. This is the real width of the image in the MS OneNote document.

      • getHeight

        public float getHeight()

        Gets or sets the height. This is the real height of the image in the MS OneNote document.

      • setHeight

        public void setHeight(float value)

        Gets or sets the height. This is the real height of the image in the MS OneNote document.

      • getOriginalWidth

        public float getOriginalWidth()

        Gets the original width. This is the original width of the image, before resizing.

      • getOriginalHeight

        public float getOriginalHeight()

        Gets the original height. This is the original width of the image, before resizing.

      • getHorizontalOffset

        public float getHorizontalOffset()

        Gets or sets the horizontal offset.

      • setHorizontalOffset

        public void setHorizontalOffset(float value)

        Gets or sets the horizontal offset.

      • getVerticalOffset

        public float getVerticalOffset()

        Gets or sets the vertical offset.

      • setVerticalOffset

        public void setVerticalOffset(float value)

        Gets or sets the vertical offset.

      • getFilePath

        public String getFilePath()

        Gets the path to the image file.

      • getFileName

        public String getFileName()

        Gets the file name.

      • getExtension

        public String getExtension()

        Gets the extension.

      • getBytes

        public byte[] getBytes()

        Gets the image data store.

      • getTags

        public List<NoteTagCore> getTags()

        Gets the list of tags of an image.

      • getAlignment

        public int getAlignment()

        Gets or sets the alignment.

      • setAlignment

        public void setAlignment(int value)

        Gets or sets the alignment.

      • getAlternativeText

        public String getAlternativeText()

        Gets or sets an alternative text for the image.

      • setAlternativeText

        public void setAlternativeText(String value)

        Gets or sets an alternative text for the image.

      • accept

        public void accept(DocumentVisitor visitor)

        Accepts the visitor of the node.

        Specified by:
        accept in interface INode
        Specified by:
        accept in class Node
        Parameters:
        visitor - The object of a class derived from the DocumentVisitor.