Android: Image Burning Effect / Animation

I am developing an application in which I want to show the effect of burning an image as -

1) The image starts to burn in the upper right corner

2) It will continue to burn until it reaches the bottom left corner.

3) As a combustion process, its burning part must be invisible.

4) when it reaches the bottom left corner, the whole image should disappear.

I tried to find a solution, but ended up pulling my hair out. Please help me with your suggestions.

The following image can help you get my idea, enter image description here

+4
source share
1 answer

use drawBitmap (Bitmap, Rect src, Rect dst, Paint paint bitmap). With this, you can specify how much of the original image will be visible, so over time you can specify the position and size of the image each time it is displayed.

0
source

Source: https://habr.com/ru/post/1487274/


All Articles