Size constructor

init

Constructs a new instance of Size

def __init__(self):
    ...

init

Initializes a new instance of the Size structure from the specified Point.

def __init__(self, point):
    ...
ParameterTypeDescription
pointPointThe Point from which to initialize this Size.

init

Initializes a new instance of the Size structure from the specified dimensions.

def __init__(self, width, height):
    ...
ParameterTypeDescription
widthintThe width component of the new Size.
heightintThe height component of the new Size.

See Also