Update examples

This commit is contained in:
vcaesar 2017-09-07 21:42:11 +08:00
parent b83330dc0d
commit d520880502
4 changed files with 9 additions and 1 deletions

View File

@ -62,6 +62,7 @@ func main() {
// open image bitmap
openbit := robotgo.OpenBitmap("test.tif")
fmt.Println("openBitmap...", openbit)
fx, fy = robotgo.FindBitmap(openbit)
fmt.Println("FindBitmap------", fx, fy)
}

View File

@ -106,6 +106,9 @@ func screen() {
// Read the screen
////////////////////////////////////////////////////////////////////////////////
abitMap := robotgo.CaptureScreen()
fmt.Println("abitMap...", abitMap)
gbitMap := robotgo.BCaptureScreen()
fmt.Println("BCaptureScreen...", gbitMap.Width)
// fmt.Println("...", gbitmap.Width, gbitmap.BytesPerPixel)
@ -169,6 +172,7 @@ func bitmap() {
// open image bitmap
openbit := robotgo.OpenBitmap("test.tif")
fmt.Println("openBitmap...", openbit)
fx, fy = robotgo.FindBitmap(openbit)
fmt.Println("FindBitmap------", fx, fy)
}

View File

@ -22,6 +22,9 @@ func main() {
// Read the screen
////////////////////////////////////////////////////////////////////////////////
abitMap := robotgo.CaptureScreen()
fmt.Println("abitMap...", abitMap)
gbitMap := robotgo.BCaptureScreen()
fmt.Println("BCaptureScreen...", gbitMap.Width)
// fmt.Println("...", gbitmap.Width, gbitmap.BytesPerPixel)

View File

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