Merge pull request #344 from go-vgo/bitmap-pr

add more bitmap examples
This commit is contained in:
vz 2021-07-20 12:07:23 -04:00 committed by GitHub
commit 6f34d75bbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# FROM golang:1.10.1
FROM golang:1.16.5-stretch AS build
FROM golang:1.16.6-stretch AS build
# FROM govgo/go:1.11.1
RUN apt update && apt install -y --no-install-recommends \

View File

@ -34,7 +34,7 @@ environment:
PATH: C:\msys64\mingw32\bin\;C:\Program Files (x86)\NSIS\;%PATH%
# - COMPILER: MINGW_W64
# ARCHITECTURE: x64
GOVERSION: 1.16.5
GOVERSION: 1.16.6
# GOPATH: c:\gopath
# scripts that run after cloning repository

View File

@ -132,6 +132,12 @@ func bitmapTest(bmp robotgo.CBitmap) {
fx, fy = robotgo.FindBitmap(bit)
fmt.Println("FindBitmap------", fx, fy)
fx, fy = robotgo.FindBitmap(bit, nil, 0.2)
fmt.Println("find bitmap: ", fx, fy)
fx, fy = robotgo.FindBitmap(bit, bitmap, 0.3)
fmt.Println("find bitmap: ", fx, fy)
}
func findBitmap(bmp robotgo.CBitmap) {