IDrawImageOptions
An object that configures rendering an image.
Inherited from the following class(es):
A string value with a base64-encoded image to be drawn.
- Type:
- string readonly
- Implemented in:
- IDrawImageOptions
An image height in pixels. Defaults to the rectangle height.
- Type:
- number readonly
- Implemented in:
- IDrawImageOptions
Horizontal alignment within the rectangle that limits the drawing area.
Possible values:
"center"
(default)"left"
"right"
- Type:
- HorizontalAlign readonly
- Implemented in:
- IDrawRectOptions
Specifies how to resize the image to fit it into its container.
Default value: "contain"
if applyImageFit
is enabled or undefined
if not.
Refer to the object-fit
CSS property description for information on accepted values.
- Type:
- string readonly
- Implemented in:
- IDrawImageOptions
The distance between the content and the borders of the rectangle. This property applies only if the content is aligned to the left/right or top/bottom.
- Type:
- IMargin readonly
- Implemented in:
- IDrawRectOptions
Vertical alignment within the rectangle that limits the drawing area.
Possible values:
"middle"
(default)"top"
"bottom"
- Type:
- VerticalAlign readonly
- Implemented in:
- IDrawRectOptions
An image width in pixels. Defaults to the rectangle width.
- Type:
- number readonly
- Implemented in:
- IDrawImageOptions
Copyright © 2024 Devsoft Baltic OÜ. All rights reserved.