类型 函数 返回值 数字 修订版 发行版 2024.3703 关键字 MemoryBitmap、getPixel 另请参阅 MemoryBitmap MemoryBitmap:setPixel() memoryBitmap.newTexture() memoryBitmap.*
返回指定像素颜色的组成部分,每个组件的范围均为 0
至 1
。
local r, g, b, a = bitmap:getPixel( x, y )
数字。准备获取的x和y像素坐标。