< Previous | Contents | Next >

Pixel

The Pixel object that will receive the color values of the image’s canvas.

Example


local p = Pixel() img:GetCanvasColor(p)

if p.R == 0 and p.G == 0 and p.B == 0 and p.A == 0 then print("Image canvas is black/transparent")

else

print("Image canvas is non-black.")

end