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

NameTypeAccessDescription
widthintRead/WriteGets the width component of this Size.
heightintRead/WriteGets the height component of this Size.
emptybooleanReadGets a value indicating whether this Size has width and height left uninitialized.
EMPTYSizeReadRepresents a Size with width and height left uninitialized.

Methods

SignatureDescription
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() → intGets the width component of this Size.
setWidth(width: int)Sets the width component of this Size.
getHeight() → intGets the height component of this Size.
setHeight(height: int)Sets the height component of this Size.
isEmpty() → booleanGets a value indicating whether this Size has width and height left uninitialized.
equals(other: Size) → booleanDetermines whether the specified size is equal to this size.
equals(obj: Object) → booleanCalls equals(obj) on this Size instance.
hashCode() → intCalls hashCode on this Size instance.
toString() → StringCalls toString on this Size instance.

See Also