fix: lag when accessibility service switch toggled

This commit is contained in:
hyb1996
2017-07-31 21:28:13 +08:00
parent 6307d3aa96
commit f51d791d98
10 changed files with 75 additions and 14 deletions

View File

@@ -47,7 +47,7 @@ images是图片与图色处理的工具。包括获取图片某点颜色
* y \<y\> 要获取的像素的纵坐标。
返回图片image在点(x, y)处的像素的ARGB值。
该值的格式为0xAARRGGBB。也就是如果`var argb = images.pixel(image, x, y)`,那么可以通过`(argb & 0xFF000000) >> 24`获取透明度,通过`(argb & 0xFF0000) >> 16`获取R值通过`(argb & 0xFF000000) >> 24`获取G值等或者通过`images.alpha(argb)`, `images.red(argb)`等获取。
该值的格式为0xAARRGGBB。也就是如果`var argb = images.pixel(image, x, y)`,那么可以通过`(argb & 0xFF000000) >> 24`获取透明度,通过`(argb & 0xFF0000) >> 16`获取R值通过`(argb & 0xFF000000) >> 24`获取G值等或者通过`colors.alpha(argb)`, `colors.red(argb)`等获取。
### images.saveImage(image, path)

View File

@@ -6,7 +6,7 @@
### Tap(x, y)
点击位置(x, y), 您可以通过"开发者选项"开启指针位置来确定点击坐标。
### Swipe(x1, y1, x2, y2)
### Swipe(x1, y1, x2, y2, \[delay\])
滑动。从(x1, y1)位置滑动到(x2, y2)位置。
### Home()