__init__ constructor
Leave feedback
On this page
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. |
from groupdocs.parser.data import Size
# Create a size of 100 × 10 pixels
size = Size(100.0, 10.0)
- class
Size
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.