update godoc

This commit is contained in:
vcaesar 2018-09-14 09:42:43 -04:00
parent ca463c32cd
commit 0c375882f0

View File

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