Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个应用程序,我想在其中显示图像刻录效果-
1)图像在右上角开始燃烧
2)它将继续燃烧,直到到达左下角。
3)在燃烧过程中,它的燃烧部分应该是不可见的。
4)当它到达左下角时,整个图像应该消失。
以下图片可能会帮助您了解我的想法,
使用 drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint)。有了它,您可以指定源图像的哪一部分将是可见的,因此随着时间的推移,您可以在每次渲染时指定图像的位置和大小。