vue-scratchable icon indicating copy to clipboard operation
vue-scratchable copied to clipboard

How to save the state of the scratched area?

Open adam-torok opened this issue 2 years ago • 1 comments

Hello!

I'm wondering if there are any ways to save the scratched area in the database somehow?

adam-torok avatar Jul 22 '23 21:07 adam-torok

It should be able to save the response of getImageData() (https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getImageData) in a database and restore its state using putImageData() (https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/putImageData)

However I'm currently working on a native WebComponent to replace the framework reliant Vue component in the near future. I added this as a feature on that component's list 😄

sebastianwachter avatar Aug 17 '23 09:08 sebastianwachter