mirror of
https://github.com/yv1ing/ShotRDP.git
synced 2025-09-16 15:10:57 +08:00
修改截图调用方式,加入可选的尺寸参数
This commit is contained in:
@@ -10,8 +10,8 @@ import (
|
||||
)
|
||||
|
||||
//export GetScreen
|
||||
func GetScreen(host *C.char, data **C.char, length *C.int) *C.char {
|
||||
imgBytes, err := client.RealGetScreen(C.GoString(host))
|
||||
func GetScreen(host *C.char, data **C.char, length *C.int, width C.int, height C.int) *C.char {
|
||||
imgBytes, err := client.RealGetScreen(C.GoString(host), int(width), int(height))
|
||||
if err != nil {
|
||||
return C.CString(err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user