Size — Aspose.Slides FOSS Java API Reference

Size — Represents a 2D size with integer dimensions.

Package: org.aspose.slides.foss.drawing


Properties

PropertyTypeAccessDescription
widthintRead/Write
heightintRead/Write
emptybooleanRead/Write

Methods

MethodReturnsDescription
getWidth()intGets the width.
setWidth(int width)voidSets the width.
getHeight()intGets the height.
setHeight(int height)voidSets the height.
isEmpty()booleanReturns true if both dimensions are zero.
add(Size a, Size b)SizeAdds two sizes component-wise.
subtract(Size a, Size b)SizeSubtracts one size from another component-wise.
equals(Object obj)boolean
hashCode()int
toString()String

See Also