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 | |
|---|---|---|---|---|---|
![]() |
inWidth | int | 1 - 65535 | Width of the created image | |
![]() |
inHeight | int | 1 - 65535 | Height of the created image | |
![]() |
inColor | Pixel | Pixel(0, 0, 0, 0) | Color of all pixels of the created image | |
![]() |
inChannels | int | 1 - 4 | 3 | Number of channels |
![]() |
inPixelType | PlainType | PlainType.UInt8 | ||
![]() |
outImage | Image | Output image |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.


