update godoc and README.md

This commit is contained in:
vcaesar 2018-07-06 19:29:38 +08:00
parent a9626058ef
commit 962a413203
3 changed files with 5 additions and 3 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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