MemoryBitmap:getPixel()

Type Function
Return value Numbers
Revision 2017.3060
Keywords MemoryBitmap, getPixel
See also MemoryBitmap
MemoryBitmap:setPixel()
memoryBitmap.newTexture()
memoryBitmap.*

Overview

Returns color components of a specified pixel in the range of 0 to 1 for each component.

Syntax

local r, g, b, a = bitmap:getPixel( x, y )
x, y (required)

Numbers. The x and y pixel coordinates to be fetched.