public final class Image extends Node implements IPageChildNode, IOutlineElementChildNode
Represents an Image.
Constructor and Description |
---|
Image(Document document,
String path)
Initializes a new instance of the
Image class. |
Image(Document document,
String fileName,
String extension,
InputStream imageStream)
Initializes a new instance of the
Image class. |
Modifier and Type | Method and Description |
---|---|
void |
accept(DocumentVisitor visitor)
Accepts the visitor of the node.
|
int |
getAlignment()
Gets or sets the alignment.
|
String |
getAlternativeText()
Gets or sets an alternative text for the image.
|
byte[] |
getBytes()
Gets the image data store.
|
String |
getExtension()
Gets the extension.
|
String |
getFileName()
Gets the file name.
|
String |
getFilePath()
Gets the path to the image file.
|
float |
getHeight()
Gets or sets the height.
|
float |
getHorizontalOffset()
Gets or sets the horizontal offset.
|
String |
getHyperlinkUrl()
Gets or sets the hyperlink associated with the image.
|
Date |
getLastModifiedTime()
Gets or sets last modified time.
|
float |
getOriginalHeight()
Gets the original height.
|
float |
getOriginalWidth()
Gets the original width.
|
List<NoteTagCore> |
getTags()
Gets the list of tags of an image.
|
float |
getVerticalOffset()
Gets or sets the vertical offset.
|
float |
getWidth()
Gets or sets the width.
|
void |
setAlignment(int value)
Gets or sets the alignment.
|
void |
setAlternativeText(String value)
Gets or sets an alternative text for the image.
|
void |
setHeight(float value)
Gets or sets the height.
|
void |
setHorizontalOffset(float value)
Gets or sets the horizontal offset.
|
void |
setHyperlinkUrl(String value)
Gets or sets the hyperlink associated with the image.
|
void |
setLastModifiedTime(Date value)
Gets or sets last modified time.
|
void |
setVerticalOffset(float value)
Gets or sets the vertical offset.
|
void |
setWidth(float value)
Gets or sets the width.
|
getDocument, getNextSibling, getNodeType, getParentNode, getPreviousSibling, isComposite
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNextSibling, getPreviousSibling
public Image(Document document, String path)
Initializes a new instance of the Image
class.
document
- A parent document of the image.path
- A string that contains the path to the file from which to create the Image
.public Image(Document document, String fileName, String extension, InputStream imageStream)
Initializes a new instance of the Image
class.
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.public Date getLastModifiedTime()
Gets or sets last modified time.
public void setLastModifiedTime(Date value)
Gets or sets last modified time.
public float getWidth()
Gets or sets the width. This is the real width of the image in the MS OneNote document.
public void setWidth(float value)
Gets or sets the width. This is the real width of the image in the MS OneNote document.
public float getHeight()
Gets or sets the height. This is the real height of the image in the MS OneNote document.
public void setHeight(float value)
Gets or sets the height. This is the real height of the image in the MS OneNote document.
public float getOriginalWidth()
Gets the original width. This is the original width of the image, before resizing.
public float getOriginalHeight()
Gets the original height. This is the original width of the image, before resizing.
public float getHorizontalOffset()
Gets or sets the horizontal offset.
public void setHorizontalOffset(float value)
Gets or sets the horizontal offset.
public float getVerticalOffset()
Gets or sets the vertical offset.
public void setVerticalOffset(float value)
Gets or sets the vertical offset.
public String getFilePath()
Gets the path to the image file.
public String getFileName()
Gets the file name.
public String getExtension()
Gets the extension.
public byte[] getBytes()
Gets the image data store.
public List<NoteTagCore> getTags()
Gets the list of tags of an image.
public int getAlignment()
Gets or sets the alignment.
HorizontalAlignment
.public void setAlignment(int value)
Gets or sets the alignment.
public String getAlternativeText()
Gets or sets an alternative text for the image.
public void setAlternativeText(String value)
Gets or sets an alternative text for the image.
public String getHyperlinkUrl()
Gets or sets the hyperlink associated with the image.
public void setHyperlinkUrl(String value)
Gets or sets the hyperlink associated with the image.
public void accept(DocumentVisitor visitor)
Accepts the visitor of the node.
Copyright (c) 2017 Aspose. All Rights Reserved.