mirror of
https://github.com/yv1ing/ShotRDP.git
synced 2025-09-16 15:10:57 +08:00
修改截图调用方式,加入可选的尺寸参数
This commit is contained in:
@@ -14,7 +14,7 @@ type Server struct {
|
||||
}
|
||||
|
||||
func (server *Server) GetScreen(ctx context.Context, in *pb.Request) (*pb.Response, error) {
|
||||
imgBytes, err := client.RealGetScreen(in.GetHost())
|
||||
imgBytes, err := client.RealGetScreen(in.GetHost(), 1024, 800)
|
||||
return &pb.Response{ImageBytes: imgBytes}, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user