HTML5中的drawImage()Canvas无法按预期工作

时间:2018-03-01 06:23:40

标签: html5-canvas

我有一张Base64图像,它是我图像的一部分。如果我使用图像的原始宽度和高度来裁剪图像的右侧部分,它将按预期工作。但是,如果我缩小图像但使用新的缩小的高度和宽度,裁剪将无法按预期工作。我已经模仿了同样的here

1 个答案:

答案 0 :(得分:1)

Documentation说:ctx.drawImage(image, sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight); 前一部分代表源图像。

要使作物彼此相似,您需要保持sx,sy,sWidth,sHeight。所以你得到:

ctx.drawImage(img,0,0,179,201,127,40,61,50);



<!DOCTYPE html>
<html>
<body>

<p>Image to use:</p>
<img id="scream" width="251" height="201" src="data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBhMSERUUEhITFRQVFxYUFhQUFRgVFBQWFxcXFBYV%0D%0AFRQXHyYfFxojGRcUHy8gIycpLCwsFR4xNTAqNSYrLCkBCQoKDgwOGg8PGiwkHCQsLCwsLCwsLCkp%0D%0ALCwsKSwsKSwpLCwpLCwsKSwsLCwsLCwsKSwsLCwsKSwsLCwsLCwpKf/AABEIAMkA+wMBIgACEQED%0D%0AEQH/xAAcAAACAgMBAQAAAAAAAAAAAAAAAQQFAgMGBwj/xABHEAABAwIDBAcGAwUFBwUBAAABAAIR%0D%0AAyEEEjEFQVFhBiJxgZGhsQcTMlLB8EKS0RQjM2LhFVOTssJDcoOi0uLxJFRjgsMW/8QAGAEBAQEB%0D%0AAQAAAAAAAAAAAAAAAAIBAwT/xAAhEQEBAAICAgIDAQAAAAAAAAAAAQIREiEDMUFRInHwE//aAAwD%0D%0AAQACEQMRAD8A9wKxBMmyyKwBubeiADjOnDeiTOnmgG5tw4IzX03cuaBzfTzSkzpu49i4Tpf0qqtx%0D%0AHuqTyxrAAS2Mz3kTBO5okd6sehXSSrXLqda7mtkO3kZo624nS/PvWb7bp1ZJkW4pEmRZBdcW9Eyb%0D%0Ai3otYHE2t58ik4m1t6HHS3pwKHO0t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pc9ziKpkn8UyBwnf5LmMf7O8QSYqAjw9JXrGJ1UVyjfem%0D%0AvEcT7NcSDZoPYf1hVeJ6G4hpg0zPKD6L38LXU0K6e2Pnk9HKwMe7dPCDPggbArTApuJ4AGfBe6V/%0D%0A1UnA6FTeh5DsroDjTB90Gji97WkdrdfJem7A6N+5pw/I55OYlrYaDwaD67ySrpikNUb7a0NoRwTy%0D%0ArcVqqaFdJEtQM7vvhzW2nsMESbE7llgPj7lbLLj32R//2Q==">

<p>Canvas:</p>
<canvas id="myCanvas" width="1562" height="648" style="border:1px solid #d3d3d3;">
Your browser does not support the HTML5 canvas tag.
</canvas>

<script>
window.onload = function() {
    var c = document.getElementById("myCanvas");
    var ctx = c.getContext("2d");
    var img = document.getElementById("scream");
    ctx.drawImage(img,0,0,179,201,127,40,61,50);
    ctx.drawImage(img,127,110,61,50);
    
    ctx.drawImage(img,0,0,179,201,497,40,179,201);
    ctx.drawImage(img,497,240,251,201);
}
</script>

<p><strong>Note:</strong> The canvas tag is not supported in Internet 
Explorer 8 and earlier versions.</p>

</body>
</html>
&#13;
&#13;
&#13;