Back to Adaptive Vision Library Lite website

You are here: Start » Image » Image Basics » EmptyImage

EmptyImage


Header: AVL.h
Namespace: avl

Creates an image filled with one color.

Applications: Most typically used to prepare a background for image drawing tools.

Syntax

void avl::EmptyImage
(
	const int inWidth,
	const int inHeight,
	const avl::Pixel& inColor,
	const int inChannels,
	const avl::PlainType::Type& inPixelType,
	avl::Image& outImage
)

Parameters

Name Type Range Default Description
inWidth const int 1 - 65535 320 Width of the created image
inHeight const int 1 - 65535 240 Height of the created image
inColor const Pixel& Color of all pixels of the created image
inChannels const int 1 - 4 3 Number of channels
inPixelType const PlainType::Type& UInt8
outImage Image& Output image

Description

The operation produces an empty image of desired dimensions and color.

Examples

EmptyImage run with default parameters produces 320x240 black image.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.