javascript - Save canvas transformed with matrix3d -
i have canvas element loaded image. need change image perspective , have implemented css transform: matrix3d
. have code builds transformation matrix based on coordinates , applies canvas. have this:
// code builds matrix 4x4 // apply matrix canvas document.getelementbyid('test-canvas').style.transform = 'matrix3d(' + matrix.join(',') + ')';
it works fine, need save transformed image, when i'm trying via canvas.todataurl
saves original image, not transformed one.
how can save transformed image canvas?
thanks
Comments
Post a Comment