mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
add GetColors func return string
This commit is contained in:
parent
9ae6598e84
commit
477fc947e1
@ -1096,6 +1096,13 @@ func GetColor(bitmap C.MMBitmapRef, x, y int) C.MMRGBHex {
|
|||||||
return color
|
return color
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetColors get bitmap color retrun string
|
||||||
|
func GetColors(bitmap C.MMBitmapRef, x, y int) string {
|
||||||
|
clo := GetColor(bitmap, x, y)
|
||||||
|
|
||||||
|
return PadHex(clo)
|
||||||
|
}
|
||||||
|
|
||||||
// FindColor find bitmap color
|
// FindColor find bitmap color
|
||||||
//
|
//
|
||||||
// robotgo.FindColor(color CHex, bitmap C.MMBitmapRef, tolerance float)
|
// robotgo.FindColor(color CHex, bitmap C.MMBitmapRef, tolerance float)
|
||||||
|
Loading…
Reference in New Issue
Block a user