MemoryBitmap:getPixel()

Type Function
Return value Numbers
Revision Release 2024.3703
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.