MemoryBitmap:getPixel()

类型 函数
返回值 数字
修订版 发行版 2024.3703
关键字 MemoryBitmap、getPixel
另请参阅 MemoryBitmap
MemoryBitmap:setPixel()
memoryBitmap.newTexture()
memoryBitmap.*

概览

返回指定像素颜色的组成部分,每个组件的范围均为 01

语法

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

数字准备获取的xy像素坐标。