SizeF — Aspose.Slides FOSS Java API Reference

SizeF — Represents a 2D size with float dimensions.

Package: org.aspose.slides.foss.drawing


Properties

PropertyTypeAccessDescription
widthfloatRead/Write
heightfloatRead/Write
emptybooleanRead/Write

Methods

MethodReturnsDescription
getWidth()floatGets the width.
setWidth(float width)voidSets the width.
getHeight()floatGets the height.
setHeight(float height)voidSets the height.
isEmpty()booleanReturns true if both dimensions are zero.
add(SizeF a, SizeF b)SizeFAdds two sizes component-wise.
toSize()SizeConverts this SizeF to a Size by truncating to integer dimensions.
equals(Object obj)boolean
hashCode()int
toString()String

See Also