Table of contents

ImageDrawer

The class ImageDrawer is a utility class for drawing graphics on images.

Definition

Namespace: com.dynamsoft.utility

Assembly: DynamsoftCaptureVisionBundle.aar

class ImageDrawer

Methods

Method Description
drawOnImage(imageData,quads,colour,thickness) Add quadrilaterals on the image.
drawOnImage(imageData,lines,colour,thickness) Add lines on the image.
drawOnImage(imageData,contours,colour,thickness) Add contours on the image.
drawOnImage(imageData,corners,colour,thickness) Add corners on the image.
drawOnImage(imageData,edges,colour,thickness) Add edges on the image.

drawOnImage(imageData,quads,colour,thickness)

Add quadrilaterals on the image.

ImageData drawOnImage(ImageData imageData, Quadrilateral[] quads, int colour, int thickness){}

Parameters

[in] imageData: The ImageData to modify.

[in] quads: An array of Quadrilateral objects to be added on the image.

[in] colour: An int value as an ARGB colour.

[in] thickness: The width of the border.

Return Value

The modified ImageData.

drawOnImage(imageData,lineSegments,colour,thickness)

Add lines on the image.

ImageData drawOnImage(ImageData imageData, LineSegment[] lines, int colour, int thickness){}

Parameters

[in] imageData: The ImageData to modify.

[in] lineSegments: An array of LineSegment objects to be added on the image.

[in] colour: An int value as an ARGB colour.

[in] thickness: The width of the lines.

Return Value

The modified ImageData.

drawOnImage(imageData,contours,colour,thickness)

Add contours on the image.

ImageData drawOnImage(ImageData imageData, Contour[] contours, int colour, int thickness){}

Parameters

[in] imageData: The ImageData to modify.

[in] contours: An array of Contour objects to be added on the image.

[in] colour: An int value as an ARGB colour.

[in] thickness: The width of the borders.

Return Value

The modified ImageData.

drawOnImage(imageData,corners,colour,thickness)

Add corners on the image.

ImageData drawOnImage(ImageData imageData, Corner[] corners, int colour, int thickness){}

Parameters

[in] imageData: The ImageData to modify.

[in] corners: An array of Corner objects to be added on the image.

[in] colour: An int value as an ARGB colour.

[in] thickness: The width of the lines.

Return Value

The modified ImageData.

drawOnImage(imageData,edges,colour,thickness)

Add edges on the image.

ImageData drawOnImage(ImageData imageData, Edge[] edges, int colour, int thickness){}

Parameters

[in] imageData: The ImageData to modify.

[in] edges: An array of Edge objects to be added on the image.

[in] colour: An int value as an ARGB colour.

[in] thickness: The width of the lines.

Return Value

The modified ImageData.

This page is compatible for: