mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 06:33:56 +00:00
add FindCBitmap func support
This commit is contained in:
parent
5c29507018
commit
f3a5747ac2
@ -825,6 +825,11 @@ func internalFindBitmap(bit, sbit C.MMBitmapRef, tolerance float64) (int, int) {
|
||||
return int(pos.x), int(pos.y)
|
||||
}
|
||||
|
||||
// FindCBitmap find bitmap's pos by CBitmap
|
||||
func FindCBitmap(bmp CBitmap, args ...interface{}) (int, int) {
|
||||
return FindBitmap(ToMMBitmapRef(bmp), args...)
|
||||
}
|
||||
|
||||
// FindBitmap find the bitmap's pos
|
||||
//
|
||||
// robotgo.FindBitmap(bitmap, subbitamp C.MMBitmapRef, tolerance float64)
|
||||
|
Loading…
Reference in New Issue
Block a user