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,
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 the alignment.
|
String |
getAlternativeText()
Deprecated.
Obsolete since 19.11 release. Now this property returns the same value as
getAlternativeTextDescription() property. |
String |
getAlternativeTextDescription()
Gets a body an alternative text for the image.
|
String |
getAlternativeTextTitle()
Gets a title of alternative text for the image.
|
byte[] |
getBytes()
Gets the image data store.
|
String |
getFileName()
Gets the file name.
|
String |
getFilePath()
Gets the path to the image file.
|
com.aspose.ms.System.Drawing.Imaging.ImageFormat |
getFormat()
Gets the image's format.
|
float |
getHeight()
Gets the height.
|
float |
getHorizontalOffset()
Gets the horizontal offset.
|
String |
getHyperlinkUrl()
Gets the hyperlink associated with the image.
|
Date |
getLastModifiedTime()
Gets 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 the vertical offset.
|
float |
getWidth()
Gets the width.
|
void |
setAlignment(int value)
Sets the alignment.
|
void |
setAlternativeText(String value)
Deprecated.
Obsolete since 19.11 release. Now this property returns the same value as
setAlternativeTextDescription(java.lang.String) property. |
void |
setAlternativeTextDescription(String value)
Sets a body an alternative text for the image.
|
void |
setAlternativeTextTitle(String value)
Sets a title of alternative text for the image.
|
void |
setHeight(float value)
Sets the height.
|
void |
setHorizontalOffset(float value)
Sets the horizontal offset.
|
void |
setHyperlinkUrl(String value)
Sets the hyperlink associated with the image.
|
void |
setLastModifiedTime(Date value)
Sets last modified time.
|
void |
setVerticalOffset(float value)
Sets the vertical offset.
|
void |
setWidth(float value)
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, InputStream imageStream)
Initializes a new instance of the Image
class.
document
- A parent document of the image.fileName
- A name of the image.imageStream
- A stream which contains the image.public Date getLastModifiedTime()
Gets last modified time.
public void setLastModifiedTime(Date value)
Sets last modified time.
public float getWidth()
Gets the width. This is the real width of the image in the MS OneNote document.
public void setWidth(float value)
Sets the width. This is the real width of the image in the MS OneNote document.
public float getHeight()
Gets the height. This is the real height of the image in the MS OneNote document.
public void setHeight(float value)
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 the horizontal offset.
getHorizontalOffset
in interface IPageChildNode
public void setHorizontalOffset(float value)
Sets the horizontal offset.
setHorizontalOffset
in interface IPageChildNode
public float getVerticalOffset()
Gets the vertical offset.
getVerticalOffset
in interface IPageChildNode
public void setVerticalOffset(float value)
Sets the vertical offset.
setVerticalOffset
in interface IPageChildNode
public String getFilePath()
Gets the path to the image file.
public String getFileName()
Gets the file name.
public final com.aspose.ms.System.Drawing.Imaging.ImageFormat getFormat()
Gets the image's format.
public byte[] getBytes()
Gets the image data store.
public List<NoteTagCore> getTags()
Gets the list of tags of an image.
public int getAlignment()
Gets the alignment.
HorizontalAlignment
.public void setAlignment(int value)
Sets the alignment.
@Deprecated public String getAlternativeText()
getAlternativeTextDescription()
property.Gets an alternative text for the image.
@Deprecated public final void setAlternativeText(String value)
setAlternativeTextDescription(java.lang.String)
property.Sets an alternative text for the image.
public final String getAlternativeTextTitle()
Gets a title of alternative text for the image.
public final void setAlternativeTextTitle(String value)
Sets a title of alternative text for the image.
public final String getAlternativeTextDescription()
Gets a body an alternative text for the image.
public final void setAlternativeTextDescription(String value)
Sets a body an alternative text for the image.
public String getHyperlinkUrl()
Gets the hyperlink associated with the image.
public void setHyperlinkUrl(String value)
Sets the hyperlink associated with the image.
public void accept(DocumentVisitor visitor)
Accepts the visitor of the node.