Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access to image data while it is not finished #9

Closed
gbuela opened this issue Apr 6, 2019 · 6 comments
Closed

access to image data while it is not finished #9

gbuela opened this issue Apr 6, 2019 · 6 comments
Labels
enhancement New feature or request

Comments

@gbuela
Copy link

gbuela commented Apr 6, 2019

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?
@EP-u-NW
Copy link
Collaborator

EP-u-NW commented Apr 22, 2020

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 :)

@gbuela gbuela closed this as completed Apr 22, 2020
@tmarzeion
Copy link
Collaborator

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(); }

@EP-u-NW
Copy link
Collaborator

EP-u-NW commented Apr 23, 2020

@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.

@tmarzeion
Copy link
Collaborator

Sure, I will try to integrate that when I find some time :)
I've added more features, like path compression, some additional callbacks etc.

@aliasgarlabs
Copy link

@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! :)

@aliasgarlabs
Copy link

aliasgarlabs commented Jul 4, 2021

@tmarzeion I'm working on implementing your changes to this repository. I was having trouble understanding the following things

  1. What islineToList and what is it used for?
  2. Can you please explain this if condition?

Thanks 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants