New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this “drawImage ” API is different from HTML5 Canvas “drawImage” #827
Comments
How do they differ? |
html5 Canvas: "sx "and "sy" is crop image start point , "swidth " and "sheight " is scale image. |
@match08 That changes based on the number of arguments passed to the function. Please see Mozilla docs. |
I think this is working as intended for all three overloads
There's test coverage for all of those. @match08 please let us know if you've found a difference. |
var Canvas = require('canvas');
var canvas = new Canvas(200, 200);
var ctx = canvas.getContext('2d');
ctx.drawImgae(image,10,10,1000,100);
this “drawImgae ” api different h5 Canvas “drawImgae”
The text was updated successfully, but these errors were encountered: