set_desired_size method
Contents
[
Hide
]set_desired_size
Sets desired width and height of image.
def set_desired_size(self, desired_width, desired_height):
...
Parameter | Type | Description |
---|---|---|
desired_width | int | desired width in pixels |
desired_height | int | desired height in pixels |
Remarks
NOTE: This member is now obsolete. Instead,
please use ImageOrPrintOptions.set_desired_size
by setting param keepAspectRatio to false.
This property will be removed 12 months later since May 2023.
Aspose apologizes for any inconvenience you may have experienced.
set_desired_size
Sets desired width and height of image.
def set_desired_size(self, desired_width, desired_height, keep_aspect_ratio):
...
Parameter | Type | Description |
---|---|---|
desired_width | int | desired width in pixels |
desired_height | int | desired height in pixels |
keep_aspect_ratio | bool | whether to keep aspect ratio of origin image |
See Also
- module
aspose.cells.rendering
- class
ImageOrPrintOptions