Back to Adaptive Vision Library Lite website

You are here: Start » Image Drawing » DrawImage

DrawImage


Draws an image on another one.

Syntax

void avl::DrawImage
(
	avl::Image& ioImage,
	const avl::Image& inDrawnImage,
	const avl::Location& inLocation
)

Parameters

Name Type Default Description
ioImage Image&
inDrawnImage const Image& Image to be pasted on ioImage
inLocation const Location& Location at which the image will be pasted

Description

The operation draws the inDrawnImage on the inImage so that the upper-left corner of the inDrawnImage is aligned at the inLocation of the inImage.

Examples

The DrawImage used to draw an image on another, empty image.

Errors

Error type Description
DomainError Incompatible image depths in DrawImage.

See Also

  • DrawGridImage – Draws an image as a tile on an image considered to be a grid of tiles.