Update examples

This commit is contained in:
vcaesar 2017-10-20 15:32:34 +08:00
parent 29c6d82cd7
commit 5afcb0af9c
3 changed files with 9 additions and 9 deletions

View File

@ -30,15 +30,15 @@ func main() {
bitmap := robotgo.CaptureScreen(100, 200, 30, 40)
fmt.Println("CaptureScreen...", bitmap)
// searches for needle in bitmap
fx, fy := robotgo.FindBit(bitmap)
fmt.Println("FindBitmap------", fx, fy)
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)
fmt.Println("FindBitmap------", fx, fy)
bit := robotgo.CaptureScreen(1, 2, 40, 40)
fmt.Println("CaptureScreen...", bit)
fx, fy = robotgo.FindBitmap(bit)

View File

@ -140,15 +140,15 @@ func bitmap() {
bitmap := robotgo.CaptureScreen(100, 200, 30, 40)
fmt.Println("CaptureScreen...", bitmap)
// searches for needle in bitmap
fx, fy := robotgo.FindBit(bitmap)
fmt.Println("FindBitmap------", fx, fy)
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)
fmt.Println("FindBitmap------", fx, fy)
bit := robotgo.CaptureScreen(1, 2, 40, 40)
fmt.Println("CaptureScreen...", bit)
fx, fy = robotgo.FindBitmap(bit)

View File

@ -55,7 +55,7 @@ import (
)
const (
version string = "v0.46.0.385, Pyrenees Mountains!"
version string = "v0.46.0.400, Pyrenees Mountains!"
)
// GetVersion get version