__init__ constructor

On this page

init

Initializes a new instance of the Size class with the specified dimensions.

def __init__(self, width, height):
    ...
Parameter Type Description
width float The width in pixels.
height float The height in pixels.

Example

from groupdocs.parser.data import Size

# Create a size of 100 × 10 pixels
size = Size(100.0, 10.0)

See Also

On this page