Size
Overview
Size is a class in Aspose.PSD FOSS for Java.
Represents an ordered pair of integer width and height values that defines a size.
This class declares 11 methods for Size objects in Java programs.
Available methods include: Size, equals, getHeight, getWidth, hashCode, isEmpty, setHeight, setWidth, toString.
Public members are accessible to any Java application after installing the Aspose.PSD FOSS for Java package.
Properties: EMPTY, empty, height, width.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
width | int | Read/Write | Gets the width component of this Size. |
height | int | Read/Write | Gets the height component of this Size. |
empty | boolean | Read | Gets a value indicating whether this Size has width and height left uninitialized. |
EMPTY | Size | Read | Represents a Size with width and height left uninitialized. |
Methods
| Signature | Description |
|---|---|
Size(width: int, height: int) | Initializes a new instance of the Size class with the specified dimensions. |
Size() | Default constructor creates a size with width and height set to 0. |
getWidth() → int | Gets the width component of this Size. |
setWidth(width: int) | Sets the width component of this Size. |
getHeight() → int | Gets the height component of this Size. |
setHeight(height: int) | Sets the height component of this Size. |
isEmpty() → boolean | Gets a value indicating whether this Size has width and height left uninitialized. |
equals(other: Size) → boolean | Determines whether the specified size is equal to this size. |
equals(obj: Object) → boolean | Calls equals(obj) on this Size instance. |
hashCode() → int | Calls hashCode on this Size instance. |
toString() → String | Calls toString on this Size instance. |