EmptyImage


Creates an image filled with one color.

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

Syntax

C++
Python
 
def EmptyImage(
	inWidth: int,
	inHeight: int,
	outImage: Image,
	/,
	*,
	inColor: Pixel = Pixel(0, 0, 0, 0),
	inChannels: int = 3,
	inPixelType: PlainType = PlainType.UInt8
)
-> None

Parameters

Name Type Range Default Description
Input value inWidth int 1 - 65535 Width of the created image
Input value inHeight int 1 - 65535 Height of the created image
Input value inColor Pixel Pixel(0, 0, 0, 0) Color of all pixels of the created image
Input value inChannels int 1 - 4 3 Number of channels
Input value inPixelType PlainType PlainType.UInt8
Output value outImage Image Output image

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.