painter2
painter2 copied to clipboard
Save painter2 drawings infomation
Hi, first of all thanks so much for this library.
I am making a drawing app, and I would like to be able to save and load different paintings.
Which properties should I save and how can I load them?
Hi,
Thank you :)
You would need to modify the code from this plugin. I think for that purpose your best choice is to save the _PathHistory
instance from the PainterController
class.
I don't have time right now to implement that in the library, but you can do it yourself. And, if you achieve it and want to share it, PRs are welcome. And i will give all credit to you :)
I amble to restore deleted drawings successfully thanks to your tips.However I'm not sure if I did it in the proper/best way in coding standards.. Currently everything is stored in list in memoery and I'm not sure how I can store the list of Path objects in database or storage
I am not sure what properties should be stored and created when loading the drawing/sketch.
Such as points are stored, but how do we know if it's supposed to be a striaght line or square?
I did this code changes in the my fork of this repo, so one can store and load drawing using _PathHistory.
Can we probably merge it in a pull request?..
Sure! Just submit that PR and i will merge it.
The problem is, I can not make this pull request: Github is saying, both branches are totally different :-/ I cannot understand, why, actually I did it once for another feature, but now it does not work.
Any idea on that?.. You can have a look here: https://github.com/fellow7000/painter2