我们在web-mobile平台用这种典型的canvas方式获取某个坐标的颜色:
http://stackoverflow.com/questions/8751020/how-to-get-a-pixels-x-y-coordinate-color-from-an-image
var img = document.getElementById('my-image');
var canvas = document.createElement('canvas');
canvas.width = img.width;
canvas.height = img.height;
canvas.getContext('2d').drawImage(img, 0, 0, img.width, img.height);
但是涉及到DOM,在原生平台无法使用…
有什么办法吗? 貌似jsbinding有getColor方法可以用? 但是没找到相关文档