SizeF — Aspose.Slides FOSS Java API Reference
SizeF — Represents a 2D size with float dimensions.
Package: org.aspose.slides.foss.drawing
Properties
| Property | Type | Access | Description |
|---|---|---|---|
width | float | Read/Write | |
height | float | Read/Write | |
empty | boolean | Read/Write |
Methods
| Method | Returns | Description |
|---|---|---|
getWidth() | float | Gets the width. |
setWidth(float width) | void | Sets the width. |
getHeight() | float | Gets the height. |
setHeight(float height) | void | Sets the height. |
isEmpty() | boolean | Returns true if both dimensions are zero. |
add(SizeF a, SizeF b) | SizeF | Adds two sizes component-wise. |
toSize() | Size | Converts this SizeF to a Size by truncating to integer dimensions. |
equals(Object obj) | boolean | |
hashCode() | int | |
toString() | String |