SetImagePixels


Sets multiple pixels of an image to the selected value (all the pixels get the same value).

Syntax

C++
Python
 
def SetImagePixels(
	ioImage: Image,
	inLocations: list[Location],
	inPixel: Pixel,
	/
)
-> None

Parameters

Name Type Default Description
Input will be modified ioImage Image
Input value inLocations list[Location] Locations of the pixels to be set
Input value inPixel Pixel New pixel value