mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 06:33:56 +00:00
update godoc and README.md
This commit is contained in:
parent
a9626058ef
commit
962a413203
@ -56,7 +56,7 @@ MinGW-w64 (Use recommended) or other GCC
|
||||
```
|
||||
#### For everything else:
|
||||
```
|
||||
GCC
|
||||
GCC, libpng
|
||||
|
||||
X11 with the XTest extension (also known as the Xtst library)
|
||||
|
||||
|
@ -54,7 +54,7 @@ MinGW-w64 (推荐使用) or other GCC
|
||||
```
|
||||
#### For everything else (Linux 等其他系统):
|
||||
```
|
||||
GCC
|
||||
GCC, libpng
|
||||
|
||||
X11 with the XTest extension (also known as the Xtst library)
|
||||
|
||||
|
@ -850,10 +850,12 @@ func internalFindBitmap(bit, sbit C.MMBitmapRef, tolerance float64) (int, int) {
|
||||
return int(pos.x), int(pos.y)
|
||||
}
|
||||
|
||||
// FindBitmap find the bitmap
|
||||
// FindBitmap find the bitmap's pos
|
||||
//
|
||||
// robotgo.FindBitmap(bitmap, subbitamp C.MMBitmapRef, tolerance float64)
|
||||
//
|
||||
// |tolerance| should be in the range 0.0f - 1.0f, denoting how closely the
|
||||
// colors in the bitmaps need to match, with 0 being exact and 1 being any.
|
||||
func FindBitmap(bit C.MMBitmapRef, args ...interface{}) (int, int) {
|
||||
var (
|
||||
sbit C.MMBitmapRef
|
||||
|
Loading…
Reference in New Issue
Block a user