Resource Base
Table of contents

ImageEditorView

The ImageEditorView class represents an image editor view, which allows users to add interactable UI elements on the view.

Definition

Assembly: package com.dynamsoft.dce

class ImageEditorView : UIView

Methods

Method Description
ImageEditorView Create an instance of CameraView.
setOriginalImage Set the original image that displayed on the view.
setOriginalImage(bitmapImage) Set the original image that displayed on the view.
getOriginalImage Get the original image that displayed on the view.
getSelectedDrawingItem Get the selected DrawingItem.
getDrawingLayer Get the specified DrawingLayer.
createDrawingLayer Create a new DrawingLayer.
deleteUserDefinedDrawingLayer Delete the specified drawing layer.
clearUserDefinedDrawingLayers Clear all the user-defined drawing layers.
setOriginalImage(bitmapImage) Set the original image that displayed on the view.
updateTipMessage Update the tip message.
setTipConfig Set/get the tip configurations.
getTipConfig Set/get the tip configurations.
setTipVisible Set the visibility of tip.
isTipVisible Get the visibility of tip.
setDrawingItemClickListener Set a DrawingItemClickListener to receive callback when DrawingItems on the view are clicked.

ImageEditorView

The consturctor. Create an instance of ImageEditorView.

ImageEditorView(android.content.Context context){}

Parameters

context: The context of the view.

Return Value

An instance of ImageEditorView.

setOriginalImage

Set the original image that displayed on the view.

void setOriginalImage(com.dynamsoft.core.ImageData imageData){}

Parameters

imageData: A com.dynamsoft.core.ImageData object as the original.

setOriginalImage(bitmapImage)

Set the original image that displayed on the view with a Bitmap.

void setOriginalImage(Bitmap bitmapImage){}

Parameters

bitmapImage: A Bitmap object as the original.

getOriginalImage

Get the original image that displayed on the view.

com.dynamsoft.core.ImageData getOriginalImage(){}

Return Value

A com.dynamsoft.core.ImageData object as the original image.

Code Snippet

getSelectedDrawingItem

Get the selected DrawingItem.

DrawingItem getSelectedDrawingItem(){}

Return Value

The selected DrawingItem.

getDrawingLayer

Get the specified DrawingLayer.

DrawingLayer getDrawingLayer(int id){}

Parameters

id: The ID of the layer that you want to get.

Return Value

The object of the targeting layer.

createDrawingLayer

Create a new DrawingLayer.

DrawingLayer createDrawingLayer(){}

Return Value

The object of the layer you created.

deleteUserDefinedDrawingLayer

Delete the specified drawing layer.

void deleteUserDefinedDrawingLayer(int id){}

Parameters

id: The ID of the layer that you want to delete.

clearUserDefinedDrawingLayers

Clear all the user-defined drawing layers.

void clearUserDefinedDrawingLayers(){}

updateTipMessage

Update the tip message.

void updateTipMessage(String tipMessage){}

Parameters

tipMessage: The new message that you want to display.

setTipConfig

Set/get the tip configurations.

void setTipConfig(TipConfig tipConfig);

Parameters

tipConfig: A TipConfig object that stores the tip configuration.

getTipConfig

Set/get the tip configurations.

TipConfig getTipConfig();

Return Value

Get a TipConfig object that stores the tip configuration.

setTipVisible

Set the visibility of tip.

void setTipVisible(boolean isVisible);

Parameters

isVisible: A boolean value that indicate the tip is visible.

isTipVisible

Get the visibility of tip.

boolean isTipVisible();

Return Value

A boolean value that indicate the tip is visible.

setDrawingItemClickListener

Set a DrawingItemClickListener to receive callback when DrawingItems on the view are clicked.

void setDrawingItemClickListener(DrawingItemClickListener clickListener)

Parameters

clickListener: An interface instance of DrawingItemClickListener.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version
  • Version 4.x
    • Version 4.2.10
    • Version 4.2.1
    • Version 4.2.0
    • Version 4.0.2
    • Version 4.0.1
    • Version 4.0.0
  • Version 3.x
    • Version 3.0.3
    • Version 3.0.2
    • Version 3.0.1
    • Version 3.0.0
  • Version 2.x
    • Version 2.3.21
    • Version 2.3.20
    • Version 2.3.12
    • Version 2.3.11
    • Version 2.3.10
    • Version 2.3.5
    • Version 2.3.4
    • Version 2.3.3
    • Version 2.3.2
    • Version 2.3.1
    • Version 2.3.0
    • Version 2.1.4
    • Version 2.1.3
    • Version 2.1.1
    • Version 2.0.0
Change +