From: acevest Date: Sun, 17 Jan 2021 06:29:35 +0000 (+0800) Subject: ... X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=7d4157632d40fd347b41fa6cc20bdf91892f34cd;p=acecode.git ... --- diff --git a/projects/esp32_video_stream/esp32camweb/canvas.html b/projects/esp32_video_stream/esp32camweb/canvas.html index 359eb7e..06d1810 100644 --- a/projects/esp32_video_stream/esp32camweb/canvas.html +++ b/projects/esp32_video_stream/esp32camweb/canvas.html @@ -12,7 +12,7 @@ - +

     

 
@@ -76,9 +76,9 @@
                 image.onload = () => {
                     URL.revokeObjectURL(image.src);
                     ctx.save();
-                    ctx.translate(120, 180);
+                    ctx.translate(60, 80);
                     ctx.rotate(90*(Math.PI/180));
-                    ctx.translate(-180, -120);
+                    ctx.translate(-80, -60);
                     ctx.drawImage(image, 0, 0);
                     ctx.restore();
                 }