ImageSettings

12 Sep 20251 minute to read

The Interface which contains the properties for loading an image into Image Editor.

Properties

backgroundColor string

Specifies the background color of an image. The default value of background color is an empty string (‘’), meaning no background color is applied by default when a transparent image is opened.

height number

Specifies the target height at which the image should be rendered on the canvas.

isAspectRatio boolean

Indicates whether to maintain the original aspect ratio when scaling the image.

width number

Specifies the target width at which the image should be rendered on the canvas.