Cropping an image correctly in JavaScript

后端 未结 0 1449
情深已故
情深已故 2021-01-19 19:18

I am trying to crop an image based on background color in JavaScript. I have come up with the following code:

    var d = ctx.getImageData(0, 0, 320, 240);
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题