mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
add GetColors func return string
This commit is contained in:
parent
9ae6598e84
commit
477fc947e1
1 changed files with 7 additions and 0 deletions
|
|
@ -1096,6 +1096,13 @@ func GetColor(bitmap C.MMBitmapRef, x, y int) C.MMRGBHex {
|
|||
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
|
||||
//
|
||||
// robotgo.FindColor(color CHex, bitmap C.MMBitmapRef, tolerance float)
|
||||
|
|
|
|||
Loading…
Reference in a new issue