Resource Base
Table of contents

ImageEditorView

Create and Destroy Instances

Name Description
static createInstance() Creates an ImageEditorView instance.
dispose() Releases all resources used by the ImageEditorView instance.
disposed A readonly boolean value indicating whether the ImageEditorView instance has been disposed.
getUIElement() Returns the HTML element that is used by the ImageEditorView instance.
setUIElement() Specifies an HTML element for the ImageEditorView instance to use as its UI element.

Drawing and UI

Name Description
createDrawingLayer() Creates a DrawingLayer object and put it in an array of DrawingLayers.
getDrawingLayer() Gets the DrawingLayer specified by its ID.
getAllDrawingLayers() Returns an array of all DrawingLayer objects.
deleteUserDefinedDrawingLayer() Deletes a DrawingLayer object specified by its ID.
clearUserDefinedDrawingLayers() Removes all user-defined DrawingLayers.
setTipConfig() Configures the tip feature.
getTipConfig() Returns the configuration of the tip.
setTipVisible() Sets whether to show the tip.
isTipVisible() Returns whether the tip is visible.
updateTipMessage() Updates the message shown in the tip.
getSelectedDrawingItems() Returns the selected DrawingItem object(s).
setVideoFit() Sets the object-fit CSS property of the video element.
getVideoFit() Returns the value of the object-fit CSS property of the video element.
setOriginalImage() Sets the image to be drawn on the image editor view.
getOriginalImage() Returns the image drawn on the image editor.

createInstance

Creates an ImageEditorView instance.

dispose

Releases all resources used by the ImageEditorView instance.

disposed

A readonly boolean value indicating whether the ImageEditorView instance has been disposed.

getUIElement

Returns the HTML element that is used by the ImageEditorView instance.

setUIElement

Specifies an HTML element for the ImageEditorView instance to use as its UI element.

createDrawingLayer

Creates a DrawingLayer object and put it in an array of DrawingLayers

getDrawingLayer

Gets the DrawingLayer specified by its ID

getAllDrawingLayers

Returns an array of all DrawingLayer objects

deleteUserDefinedDrawingLayer

Deletes a DrawingLayer object specified by its ID

clearUserDefinedDrawingLayers

Removes all user-defined DrawingLayers

setTipConfig

Configures the tip feature

getTipConfig

Returns the configuration of the tip

setTipVisible

Sets whether to show the tip

isTipVisible

Returns whether the tip is visible

updateTipMessage

Updates the message shown in the tip

getSelectedDrawingItems

Returns the selected DrawingItem object(s).

setVideoFit

Sets the object-fit CSS property of the video element.

getVideoFit

Returns the value of the object-fit CSS property of the video element.

setOriginalImage

Sets the image to be drawn on the image editor view.

getOriginalImage

Returns the image drawn on the image editor.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article:

version 3.3.10

  • Latest version(4.0.3)
  • Version 4.x
    • Version 4.0.2
    • Version 4.0.1
    • Version 4.0.0
  • Version 3.x
    • Version 3.3.10
    • Version 3.3.9
    • Version 3.3.8
    • Version 3.3.7
    • Version 3.3.6
    • Version 3.3.5
    • Version 3.3.4
    • Version 3.3.3
    • Version 3.3.2
    • Version 3.3.1
    • Version 3.3.0
    • Version 3.2.0
    • Version 3.1.0
    • Version 3.0.1
    • Version 3.0.0
  • Version 2.x
    • Version 2.3.5
    • Version 2.3.2
    • Version 2.3.1
    • Version 2.3.0
    • Version 2.1.4
    • Version 2.1.3
    • Version 2.1.0
    • Version 2.0.0
Change +