access to image data while it is not finished
gbuela opened this issue · 6 comments
before I set the painter as finished I would like to:
- know if anything has been painted at all (true/false)
- get a snapshot image of the drawing but still let the user draw more
is that possible?
The first part of your request is now implemented, see PainterController.isEmpty.
There are currently no plans to impelent the second part, but feel free to open a pr :)
I've implemented painting history serialization/deserialization mechanism for my app purposes.
Unfortunately my painter fork is modified too much to make PR out of it.
Maybe you or @EPNW could grab some inspiration out of this code and implement it here :)
https://github.com/tmarzeion/painter/blob/master/lib/painter.dart
String get history { return _serializeHistory(); }
@tmarzeion I gave you direct access to this repo :) I've you want to integrate your code, feel free to open a new branch, test it there and open a pr once you are ready.
Sure, I will try to integrate that when I find some time :)
I've added more features, like path compression, some additional callbacks etc.
@tmarzeion Thanks for the serialization feature! Is there any help needed in getting your fork merged into this one? I need this feature for my app too and I am happy to help! :)
@tmarzeion I'm working on implementing your changes to this repository. I was having trouble understanding the following things
- What is
lineToList
and what is it used for? - Can you please explain this if condition?
Thanks 🙂