image - The opposite effect of scratch card for Android. (Anti erase effect of picture) -
i make application, have 2 pictures(layers) , can erase part of foreground image(using tapping , finger painting). make this, had used scratchview library android. android-wscratchview
this give opportunity erase parts of images. next step - "anti erase". must use finger draw, , restore parts of image have been erased. dont understand how it. may possible change method of library class , have opportunity "anti erase". may should create special handler this. had tried done long time, , hope can me in this. thanks!
i guess article should this: http://www.41post.com/4794/programming/android-rendering-a-path-with-a-bitmap-fill
there can see how draw path filled bitmap. rest pretty straightforward: assign bitmap (top layer image) paint in above article. in "motionevent.action_down" add path not mpathlist, other, say, npathlist. in "ondraw" go through npathlist , draw paint article above.
Comments
Post a Comment