如何在Lua中使用CCImage获得图片中某个像素值

请问如何在Lua中使用CCImage获得图片中某个像素值?
初步代码如下:
local myimg = cc.Image:new()
myimg:initWithImageFile(filename)

local myimg = cc.Image:new() --或者local myimg = CCImage:new() 来实例化对象

myimg:initWithImageFile(filename) --加载文件

myimg:getColor4B(float x, float y) --返回ccColor4B对象或者myimg:getColor4F(float x, float y)返回ccColor4F对象


你这帖子时间蛮久了咧,不晓得你之前解决了没有,我也是找了好多资料都没有找到,自己看CCImage.tolua文件才恍然大悟!!!