Documentation ¶
Index ¶
- func Click(bit robotgo.CBitmap, args ...interface{})
- func Convert(opath, spath string, args ...int) error
- func CopyToPB(bit robotgo.CBitmap) bool
- func Count(bit, sourceBitmap robotgo.CBitmap, args ...float32) int
- func CountColor(color robotgo.CHex, args ...interface{}) int
- func CountColorCS(color robotgo.CHex, x, y, w, h int, args ...float64) int
- func DeepCopy(bit robotgo.CBitmap) robotgo.CBitmap
- func DeepCopyC(bit C.MMBitmapRef) C.MMBitmapRef
- func Find(bit robotgo.CBitmap, args ...interface{}) (int, int)
- func FindAll(bit robotgo.CBitmap, args ...interface{}) (posArr []robotgo.Point)
- func FindAllColor(color robotgo.CHex, args ...interface{}) (posArr []robotgo.Point)
- func FindColor(color robotgo.CHex, args ...interface{}) (int, int)
- func FindColorCS(color robotgo.CHex, x, y, w, h int, args ...float64) (int, int)
- func FindPic(path string, args ...interface{}) (int, int)
- func FreeArr(bit ...robotgo.CBitmap)
- func FreeArrC(bit ...C.MMBitmapRef)
- func FreeMMPointArr(pointArray C.MMPointArrayRef)
- func FromStr(str string) robotgo.CBitmap
- func FromStrC(str string) C.MMBitmapRef
- func GetColor(bit robotgo.CBitmap, x, y int) C.MMRGBHex
- func GetColors(bit robotgo.CBitmap, x, y int) string
- func GetPortion(bit robotgo.CBitmap, x, y, w, h int) robotgo.CBitmap
- func GetSize(imgPath string) (int, int)
- func Open(path string, args ...int) robotgo.CBitmap
- func OpenC(gpath string, args ...int) C.MMBitmapRef
- func PointInBounds(bit robotgo.CBitmap, x, y int) bool
- func Read(bit robotgo.CBitmap) bool
- func Save(bit robotgo.CBitmap, gpath string, args ...int) error
- func SaveCapture(spath string, args ...int) error
- func ToBytes(bit robotgo.CBitmap) []byte
- func ToC(bit robotgo.Bitmap) C.MMBitmapRef
- func ToMMBitmapRef(bit robotgo.CBitmap) C.MMBitmapRef
- func ToRHex(hex C.MMRGBHex) robotgo.CHex
- func ToRobot(bit C.MMBitmapRef) robotgo.CBitmap
- func ToThis(bit robotgo.CBitmap) C.MMBitmapRef
- func Tochar(bit robotgo.CBitmap) *C.char
- func Tostring(bit robotgo.CBitmap) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountColor ¶
CountColor count bitmap color
func CountColorCS ¶
CountColorCS count bitmap color by CaptureScreen
func DeepCopyC ¶
func DeepCopyC(bit C.MMBitmapRef) C.MMBitmapRef
DeepCopyC deep copy bitmap to new bitamp
func Find ¶
Find find the bitmap's pos in source bitmap
bitmap.Find(bitmap, source_bitmap robotgo.CBitmap, tolerance float64) |tolerance| should be in the range 0.0f - 1.0f, denoting how closely the colors in the bitmaps need to match, with 0 being exact and 1 being any.
This method only automatically free the internal bitmap, use `defer robotgo.FreeBitmap(bit)` to free the bitmap
func FindAllColor ¶
FindAllColor find the all color
func FindColor ¶
FindColor find bitmap color
bitmap.FindColor(color CHex, bitmap robotgo.CBitmap, tolerance float)
func FindColorCS ¶
FindColorCS findcolor by CaptureScreen
func FindPic ¶
FindPic finding the image by path
bitmap.FindPic(path string, source_bitmap robotgo.CBitmap, tolerance float64)
This method only automatically free the internal bitmap, use `defer robotgo.FreeBitmap(bit)` to free the bitmap
func FreeArrC ¶
func FreeArrC(bit ...C.MMBitmapRef)
FreeArrC free and dealloc the C.MMBitmapRef bitmap array
func FreeMMPointArr ¶
func FreeMMPointArr(pointArray C.MMPointArrayRef)
FreeMMPointArr free MMPoint array
func GetPortion ¶
GetPortion get bitmap portion
func OpenC ¶
func OpenC(gpath string, args ...int) C.MMBitmapRef
OpenC open the bitmap return C.MMBitmapRef
bitmap.Open(path string, type int)
func PointInBounds ¶
PointInBounds bitmap point in bounds
func Save ¶
Save save the bitmap to image
bitmap.Save(bitmap robotgo.CBitmap, path string, type int)
func SaveCapture ¶
SaveCapture capture the screen and save to path
func ToMMBitmapRef ¶
func ToMMBitmapRef(bit robotgo.CBitmap) C.MMBitmapRef
ToMMBitmapRef trans CBitmap to C.MMBitmapRef
func ToRobot ¶
func ToRobot(bit C.MMBitmapRef) robotgo.CBitmap
ToRobot trans C.MMBitmapRef to robotgo.CBitmap
Types ¶
This section is empty.