Update capture go function

This commit is contained in:
vcaesar 2022-01-06 20:49:10 -04:00
parent ec4d4dd0d8
commit 112fc4c6bb
2 changed files with 4 additions and 4 deletions

View File

@ -23,8 +23,8 @@ func bitmap() {
gbit := robotgo.ToBitmap(abitMap)
fmt.Println("bitmap...", gbit.Width)
gbitMap := robotgo.GoCaptureScreen()
fmt.Println("GoCaptureScreen...", gbitMap.Width)
gbitMap := robotgo.CaptureGo()
fmt.Println("Go CaptureScreen...", gbitMap.Width)
// fmt.Println("...", gbitmap.Width, gbitmap.BytesPerPixel)
// robotgo.SaveCapture("saveCapture.png", 10, 20, 100, 100)

View File

@ -326,8 +326,8 @@ func CaptureScreen(args ...int) CBitmap {
return CBitmap(bit)
}
// GoCaptureScreen capture the screen and return bitmap(go struct)
func GoCaptureScreen(args ...int) Bitmap {
// CaptureGo capture the screen and return bitmap(go struct)
func CaptureGo(args ...int) Bitmap {
bit := CaptureScreen(args...)
defer FreeBitmap(bit)