ImageDrawer
The ImageDrawer class provides API to render geometric shapes such as quadrilaterals on images. This class comes in handy when you want to add annotations to an image obtained from a CapturedResult or from the IntermediateResultManager.
Definition
Assembly: dynamsoft_capture_vision_flutter
class ImageDrawer
Methods
drawOnImage
Draws quadrilaterals on the image with the specified style parameters.
Future<ImageData> drawOnImage(ImageData image, List<Quadrilateral> quadrilaterals, int color, int thickness) async
Parameters
image: The source image to draw on.
quadrilaterals: List of Quadrilateral objects to render onto the image.
color: ARGB colour value (0xAARRGGBB format)
thickness: The line thickness in pixels.
Returns
An ImageData object that represents the new image with the rendered shapes.