mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-23 09:48:59 +00:00
Update capture go function
This commit is contained in:
parent
ec4d4dd0d8
commit
112fc4c6bb
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue