fix: lag when accessibility service switch toggled
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user