mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
add PointInBounds examples
This commit is contained in:
parent
7a1ffa66a9
commit
f6cfce3f4b
@ -50,6 +50,9 @@ func main() {
|
||||
fx, fy = robotgo.FindBitmap(bit, bitmap)
|
||||
fmt.Println("FindBitmap------", fx, fy)
|
||||
|
||||
abool := robotgo.PointInBounds(bitmap, 1, 2)
|
||||
fmt.Println("point in bounds...", abool)
|
||||
|
||||
// returns new bitmap object created from a portion of another
|
||||
bitpos := robotgo.GetPortion(bitmap, 10, 10, 11, 10)
|
||||
fmt.Println(bitpos)
|
||||
|
@ -162,6 +162,10 @@ func bitmap() {
|
||||
fx, fy = robotgo.FindBitmap(bit, bitmap)
|
||||
fmt.Println("FindBitmap------", fx, fy)
|
||||
|
||||
// bitmap := robotgo.CaptureScreen(10, 20, 30, 40)
|
||||
abool := robotgo.PointInBounds(bitmap, 1, 2)
|
||||
fmt.Println("point in bounds...", abool)
|
||||
|
||||
// returns new bitmap object created from a portion of another
|
||||
bitpos := robotgo.GetPortion(bitmap, 10, 10, 11, 10)
|
||||
fmt.Println(bitpos)
|
||||
|
Loading…
Reference in New Issue
Block a user