set
Sets the width and height dimensions base on another size.
Parameters
size
The size from which the dimensions are to be set.
Throws
If any of the dimensions of size is negative.
Sets the width and height coordinates of the size.
Parameters
width
The new width dimension.
height
The new height dimension.