add ToMMRGBHex convert color hex

This commit is contained in:
vcaesar 2017-12-25 00:53:22 +08:00
parent eb425d7652
commit bb7518a04a

View File

@ -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)