Size

Overview

Size is a class in Aspose.PSD FOSS for Python.

This class declares 7 methods for Size objects in Python programs. Available methods include: __eq__, __hash__, __init__, __ne__, __str__, empty, equals. Public members are accessible to any Python application after installing the Aspose.PSD FOSS for Python package. Properties: Empty, IsEmpty, height, is_empty, width.

Properties

NameTypeAccessDescription
is_emptyboolReadGets the is empty.
IsEmptyboolReadGets the is empty.
EmptyOptional["Size"]ReadGets the empty.
width-ReadGets the width.
height-ReadGets the height.

Methods

SignatureDescription
empty()returns aSizeinstance with zero width and height, and theis_empty` property reports true for such instances
__init__(width: int, height: int)Calls init(width, height) on this Size instance.
equals(other) → boolCalls equals(other) on this Size instance.
__eq__(obj) → boolCalls eq(obj) on this Size instance.
__hash__() → intCalls hash on this Size instance.
__str__() → strCalls str on this Size instance.
__ne__(other) → boolCalls ne(other) on this Size instance.

See Also

 English