Adding zoom-in and zoom-out features using javascript

Dear All,

We are having problem in adding zoom-in and zoom-out features in javascript image array. Could you please help us in adding zoom-in features in the following code?

const canvasImageData = ctx.getImageData(
      0,
      0,
      canvas.width,
      canvas.height
    );

ctx.putImageData(canvasImageData, 0, 0);  

Kindly please help.

Your help will be highly appreciated.

Best regards,
Sunita

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.