ImageEditorViewController
ImageEditorViewController is the controller for managing and interacting with an ImageEditorView instance.
Provides methods to control the native image editor platform view, including image manipulation and quadrilateral drawing operations. This controller bridges Flutter code with native platform functionality.
Definition
Assembly: dynamsoft_capture_vision_flutter
class ImageEditorViewController
Constructors
ImageEditorViewController(int id);
Methods
| Methods | Description |
|---|---|
setImageData |
Sets the image data to be displayed and edited in the native view. |
setDrawingQuads |
Updates the drawing quadrilaterals on a specific drawing layer. |
getSelectedQuad |
Retrieves the currently selected quadrilateral from the editor. |
setImageData
Sets the image data to be displayed and edited in the native view.
Future<void> setImageData(ImageData imageData) async;
setDrawingQuads
Updates the drawing quadrilaterals on a specific drawing layer.
Future<void> setDrawingQuads(List<Quadrilateral> drawingQuads, int drawingLayerId) async;
getSelectedQuad
Retrieves the currently selected quadrilateral from the editor.
Future<Quadrilateral> getSelectedQuad() async;