Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

How to save the state of the scratched area? #25

Open
adam-torok opened this issue Jul 22, 2023 · 1 comment
Open

How to save the state of the scratched area? #25

adam-torok opened this issue Jul 22, 2023 · 1 comment

Comments

@adam-torok
Copy link

Hello!

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

@sebastianwachter
Copy link
Owner

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 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants