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.
我想在壁纸上绘制一些文字并使其移动,但在壁纸图像上。我知道如何c.drawColor(int color)在绘制移动文本之间进行操作,但是当我想在位图上绘制时我该怎么办?我应该可以使用c.setBitmap(Bitmap mBitmap),但它不起作用。
c.drawColor(int color)
c.setBitmap(Bitmap mBitmap)
有任何想法吗 ?
提前致谢 !
使用Canvas.drawBitmap(),先画位图,再画文字。
Canvas.drawBitmap()
Cnavas.setBitmap()用于设置您使用在内存上创建的位图Bitmap.createBitmap()。
Cnavas.setBitmap()
Bitmap.createBitmap()