Android-WScratchView icon indicating copy to clipboard operation
Android-WScratchView copied to clipboard

Storing Scratchview data and redraw later ?

Open LeisureTime opened this issue 10 years ago • 2 comments

Hi, i am able to implement this lib on Logo Guessing game.

And I also want to store data some where. and later i want to redraw the last stored image exactly same..

Is it possible ?

LeisureTime avatar Feb 19 '15 06:02 LeisureTime

I am not getting your question exactly. If you are referring the last scratched location, all are store in List<Path> mPathList in the sources. You can modify the sources to add get set function to access the mPathList and then serialize it somewhere you prefer to. Maybe you need to take a look on android.graphics.Path too. Good Luck.

winsontan520 avatar Feb 28 '15 09:02 winsontan520

Thanks winson .. I will implement it..

On Sat, Feb 28, 2015 at 2:33 PM, Winson Tan [email protected] wrote:

I am not getting your question exactly. If you are referring the last scratched location, all are store in List mPathList in the sources. You can modify the sources to add get set function to access the mPathList and then serialize it somewhere you prefer to. Maybe you need to take a look on android.graphics.Path too. Good Luck.

— Reply to this email directly or view it on GitHub https://github.com/winsontan520/Android-WScratchView/issues/14#issuecomment-76518043 .

LeisureTime avatar Feb 28 '15 11:02 LeisureTime