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
| Name | Type | Access | Description |
|---|---|---|---|
is_empty | bool | Read | Gets the is empty. |
IsEmpty | bool | Read | Gets the is empty. |
Empty | Optional["Size"] | Read | Gets the empty. |
width | - | Read | Gets the width. |
height | - | Read | Gets the height. |
Methods
| Signature | Description |
|---|---|
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) → bool | Calls equals(other) on this Size instance. |
__eq__(obj) → bool | Calls eq(obj) on this Size instance. |
__hash__() → int | Calls hash on this Size instance. |
__str__() → str | Calls str on this Size instance. |
__ne__(other) → bool | Calls ne(other) on this Size instance. |