Interface IMarkupImageParams

Defines the parameters for creating a markup image.

interface IMarkupImageParams {
    height?: number;
    id?: string;
    maxHeight?: number;
    maxWidth?: number;
    position?: { x: number; y: number };
    position2?: { x: number; y: number };
    src?: string;
    width?: number;
}

Properties

height?: number

Deprecated. Height of the image. The original image is scaled to this height. Specify 0 to set height of the source image. Ignored if position2 is defined.

0
id?: string

Internal markup object identifier.

maxHeight?: number

Maximum height of the image. Specify a max height if you want to set the height to the original image but not more than the max.

maxWidth?: number

Maximum width of the image. Specify a max width if you want to set the width to the original image but not more than the max.

position?: { x: number; y: number }

Screen coordinates of the top-left point (position) of the image.

position2?: { x: number; y: number }

Screen coordinates of the bottom-right point (position) of the image. Specify 0 to set widt and height of the source image.

src?: string

Image source as a base64-encoded Data URL.

width?: number

Deprecated. Width of the image. The original image is scaled to this width. Specify 0 to set width of the source image. Ignored if position2 is defined.

0