Size Constructor

Constructor in Size

Declaration

public Size(int width = 0, int height = 0)

Description

Creates a new size with the specified width and height.

Parameters

widthThe width of the entity.
heightThe height of the entity.

Overload

Declaration

public Size(int size)

Description

Creates a new size with uniform width and height.

Parameters

sizeThe uniform size of the entity.