javascript - Export image toDataURL without affecting multiplier to its image width and height? -
i'm using fabricjs 1.6.4. there way export image png without affecting multiplier image width , height.
var multi = maskoriwidth/maskwidth; // set original scale canvas.renderall(); var maskimg = canvas.todataurl({ format: 'png', multiplier: multi, left: (canvas.width - maskwidth)/2, height: maskoriheight/multi, width: maskoriwidth/multi }); this saving function. multiplier affected width , height also. have divide multiplier. need prevent multiplier affection width , height.
Comments
Post a Comment