try to fix crash under android19
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
module.exports = function(){
|
||||
|
||||
}
|
||||
12
app/src/main/assets/sample/图片与图色处理/颜色获取和检测.js
Normal file
12
app/src/main/assets/sample/图片与图色处理/颜色获取和检测.js
Normal file
@@ -0,0 +1,12 @@
|
||||
if(!requestScreenCapture()){
|
||||
toast("请求截图失败");
|
||||
}
|
||||
sleep(2000);
|
||||
var x = 760;
|
||||
var y = 180;
|
||||
//获取在点(x, y)处的颜色
|
||||
var c = images.pixel(captureScreen(), x, y);
|
||||
//显示该颜色
|
||||
toast((c >>> 0).toString(16));
|
||||
//检测在点(x, y)处是否有颜色0x73bdb6 (模糊比较)
|
||||
toast(images.detectsColor(captureScreen(), x, y, 0x73bdb6))
|
||||
Reference in New Issue
Block a user