diff --git a/examples/bitmap/main.go b/examples/bitmap/main.go index 7dd91f5..338d011 100644 --- a/examples/bitmap/main.go +++ b/examples/bitmap/main.go @@ -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) diff --git a/examples/main.go b/examples/main.go index 2440e8e..9e78ed1 100644 --- a/examples/main.go +++ b/examples/main.go @@ -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)