修改截图调用方式,加入可选的尺寸参数

This commit is contained in:
2025-03-22 10:19:54 +08:00
parent d8b3c87347
commit b5fcc72f63
5 changed files with 103 additions and 10 deletions

View File

@@ -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
}