SizeF
Overview
SizeF is a class in Aspose.Slides FOSS for Java.
Represents a 2D size with float dimensions.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
width | float | Read | Gets the width. |
height | float | Read | Gets the height. |
empty | boolean | Read | Returns {@code true} if both dimensions are zero. |
EMPTY | SizeF | Read | Empty size with dimensions (0, 0). |
Methods
| Signature | Description |
|---|---|
SizeF(width: float, height: float) | Initializes a new instance of SizeF with the specified dimensions. |
SizeF() | Initializes a new instance of SizeF with dimensions (0, 0). |
getWidth() → float | Gets the width. |
setWidth(width: float) | Sets the width. |
getHeight() → float | Gets the height. |
setHeight(height: float) | Sets the height. |
isEmpty() → boolean | Returns {@code true} if both dimensions are zero. |
add(a: SizeF, b: SizeF) → SizeF | Adds two sizes component-wise. |
toSize() → Size | Converts this SizeF to a Size by truncating to integer dimensions. |
equals(obj: Object) → boolean | |
hashCode() → int | Returns a hash code based on the size’s dimensions |
toString() → String |