Update examples

This commit is contained in:
vcaesar 2017-09-18 21:00:22 +08:00
parent ea0b910646
commit 100783ccf4
2 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,8 @@ func main() {
color := robotgo.GetColor(bitmap, 1, 2)
fmt.Println("color...", color)
cx, cy := robotgo.FindColor(bitmap, color, 1.0)
fmt.Println("pos...", cx, cy)
// searches for needle in bitmap
fx, fy := robotgo.FindBit(bitmap)

View File

@ -142,6 +142,8 @@ func bitmap() {
color := robotgo.GetColor(bitmap, 1, 2)
fmt.Println("color...", color)
cx, cy := robotgo.FindColor(bitmap, color, 1.0)
fmt.Println("pos...", cx, cy)
// searches for needle in bitmap
fx, fy := robotgo.FindBit(bitmap)