Image
Overview
Image is a class in Aspose.Note FOSS for Python.
Inherits from: CompositeNode.
Image.Replace replaces the current image data with the provided Image instance.
This class provides 9 methods for working with Image objects in Python programs.
Available methods include: Accept, AppendChildFirst, AppendChildLast, GetChildNodes, GetEnumerator, InsertChild, RemoveChild, Replace, __init__.
All public members are accessible to any Python application after installing the Aspose.Note FOSS for Python package.
Properties: Alignment, AlternativeTextDescription, AlternativeTextTitle, Bytes, Document, FileName, and 15 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
FileName | str | None | Read | Gets the file name. |
FilePath | str | None | Read | Gets the file path. |
Format | str | None | Read | Gets the format. |
Bytes | bytes | Read | Gets the bytes. |
OriginalWidth | float | None | Read | Gets the original width. |
OriginalHeight | float | None | Read | Gets the original height. |
Tags | list[NoteTag] | Read | Gets the tags. |
Alignment | HorizontalAlignment | None | Read/Write | Gets or sets the alignment. |
Width | `` | Read | Gets the width. |
Height | `` | Read | Gets the height. |
HorizontalOffset | `` | Read | Gets the horizontal offset. |
VerticalOffset | `` | Read | Gets the vertical offset. |
IsBackground | `` | Read | Gets the is background. |
LastModifiedTime | `` | Read | Gets the last modified time. |
AlternativeTextTitle | `` | Read | Gets the alternative text title. |
AlternativeTextDescription | `` | Read | Gets the alternative text description. |
HyperlinkUrl | `` | Read | Gets the hyperlink url. |
FirstChild | Node | None | Read | Gets the first child. |
LastChild | Node | None | Read | Gets the last child. |
ParentNode | Node | None | Read | Gets the parent node. |
Document | Document | None | Read | Gets the document. |
Methods
| Signature | Description |
|---|---|
__init__(FileName: str | None, FilePath: str | None, Format: str | None, Bytes: bytes, Width: float | None, Height: float | None, OriginalWidth: float | None, OriginalHeight: float | None, HorizontalOffset: float | None, VerticalOffset: float | None, Alignment: HorizontalAlignment | None, IsBackground: bool, LastModifiedTime: datetime | None, AlternativeTextTitle: str | None, AlternativeTextDescription: str | None, HyperlinkUrl: str | None, Tags: list[NoteTag] | None) | |
Replace(image: Image) | Replaces the current image data with the provided Image instance |
AppendChildLast(node: TNode) → TNode | |
AppendChildFirst(node: TNode) → TNode | |
InsertChild(index: int, node: TNode) → TNode | |
RemoveChild(node: Node) | |
GetEnumerator() → Iterator[Node] | |
GetChildNodes(node_type: type[TNode]) → list[TNode] | |
Accept(visitor: DocumentVisitor) |