meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.55k stars 404 forks source link

Canvas cropping outputs blurred #159

Open tobinvadakkedam opened 9 years ago

tobinvadakkedam commented 9 years ago

Hai,

Canvas cropping only crops from top left corner,if i give x,y coordinates it will outputs blurred output .if i don't give x,y values, it crops a portion from top left corner correctly. Caman(canvas, function() { this.crop(300, 300); // it crops from top left corner this.crop(300, 300,10,10); // it outputs blurred canvas this.render(); }); Can anyone help me to solve this issue??