Table of contents

ImageDrawer

The ImageDrawer class is a utility class for drawing various shapes on images.

Definition

Namespace: com.dynamsoft.utility

public class ImageDrawer

Methods

Method Description
ImageDrawer Initializes a new instance of the ImageDrawer class.
drawOnImage Draws various shapes on an image.

ImageDrawer

Initializes a new instance of the ImageDrawer class.

ImageDrawer()

drawOnImage

Draws various shapes on an image.

ImageData drawOnImage(ImageData imageData, Quadrilateral[] quads)
ImageData drawOnImage(ImageData imageData, Quadrilateral[] quads, int color, int thickness)
ImageData drawOnImage(ImageData imageData, LineSegment[] lines)
ImageData drawOnImage(ImageData imageData, LineSegment[] lines, int color, int thickness)
ImageData drawOnImage(ImageData imageData, Contour[] contours)
ImageData drawOnImage(ImageData imageData, Contour[] contours, int color, int thickness)
ImageData drawOnImage(ImageData imageData, Corner[] corners)
ImageData drawOnImage(ImageData imageData, Corner[] corners, int color, int thickness)
ImageData drawOnImage(ImageData imageData, Edge[] edges)
ImageData drawOnImage(ImageData imageData, Edge[] edges, int color, int thickness)

Parameters

imageData The image data to draw on.

quads The quadrilaterals to draw.

lines The line segments to draw.

contours The contours to draw.

corners The corners to draw.

edges The edges to draw.

color The color to use for drawing. Defaults to 0 (black).

thickness The thickness of the lines to draw. Defaults to 0.

Return value

An ImageData object representing the modified image data.

See Also

ImageData

Quadrilateral

LineSegment

Contour

Corner

Edge

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: