mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 06:33:56 +00:00
add ToMMRGBHex convert color hex
This commit is contained in:
parent
eb425d7652
commit
bb7518a04a
@ -62,7 +62,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
version string = "v0.47.0.458, Mount Cook!"
|
||||
version string = "v0.47.0.460, Mount Cook!"
|
||||
)
|
||||
|
||||
type (
|
||||
@ -123,6 +123,11 @@ func GetPxColor(x, y int) C.MMRGBHex {
|
||||
return color
|
||||
}
|
||||
|
||||
// ToMMRGBHex trans CHex to C.MMRGBhex
|
||||
func ToMMRGBHex(hex CHex) C.MMRGBHex {
|
||||
return C.MMRGBHex(hex)
|
||||
}
|
||||
|
||||
// GetPixelColor get pixel color return string
|
||||
func GetPixelColor(x, y int) string {
|
||||
cx := C.size_t(x)
|
||||
|
Loading…
Reference in New Issue
Block a user