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

NameTypeAccessDescription
FileNamestr | NoneReadGets the file name.
FilePathstr | NoneReadGets the file path.
Formatstr | NoneReadGets the format.
BytesbytesReadGets the bytes.
OriginalWidthfloat | NoneReadGets the original width.
OriginalHeightfloat | NoneReadGets the original height.
Tagslist[NoteTag]ReadGets the tags.
AlignmentHorizontalAlignment | NoneRead/WriteGets or sets the alignment.
Width``ReadGets the width.
Height``ReadGets the height.
HorizontalOffset``ReadGets the horizontal offset.
VerticalOffset``ReadGets the vertical offset.
IsBackground``ReadGets the is background.
LastModifiedTime``ReadGets the last modified time.
AlternativeTextTitle``ReadGets the alternative text title.
AlternativeTextDescription``ReadGets the alternative text description.
HyperlinkUrl``ReadGets the hyperlink url.
FirstChildNode | NoneReadGets the first child.
LastChildNode | NoneReadGets the last child.
ParentNodeNode | NoneReadGets the parent node.
DocumentDocument | NoneReadGets the document.

Methods

SignatureDescription
__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)

See Also

 English