mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-10 18:23:54 +00:00
update godoc
This commit is contained in:
parent
ca463c32cd
commit
0c375882f0
@ -1045,7 +1045,9 @@ func GetPortion(bit C.MMBitmapRef, x, y, w, h int) C.MMBitmapRef {
|
|||||||
return pos
|
return pos
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert convert bitmap
|
// Convert convert the bitmap
|
||||||
|
//
|
||||||
|
// robotgo.Convert(opath, spath string, type int)
|
||||||
func Convert(opath, spath string, args ...int) {
|
func Convert(opath, spath string, args ...int) {
|
||||||
var mtype = 1
|
var mtype = 1
|
||||||
if len(args) > 0 {
|
if len(args) > 0 {
|
||||||
@ -1098,6 +1100,8 @@ func GetColor(bitmap C.MMBitmapRef, x, y int) C.MMRGBHex {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FindColor find bitmap color
|
// FindColor find bitmap color
|
||||||
|
//
|
||||||
|
// robotgo.FindColor(color CHex, bitmap C.MMBitmapRef, tolerance float)
|
||||||
func FindColor(color CHex, args ...interface{}) (int, int) {
|
func FindColor(color CHex, args ...interface{}) (int, int) {
|
||||||
var (
|
var (
|
||||||
tolerance C.float = 0.01
|
tolerance C.float = 0.01
|
||||||
|
Loading…
Reference in New Issue
Block a user