且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在我的Android应用程序中为每个活动添加水印?

更新时间:2023-09-22 09:28:10

你eed创建一个canvas对象,然后在其上绘制。画布的大小与屏幕大小相同,因此您可以测量水印位图的大小。然后将其渲染为活动中的背景图像。



如何在Android中为图像添加水印效果? - 堆栈溢出 [ ^ ]
You need to create a canvas object then draw on top of that. Canvas would be of size of the screen and so you can then measure the size for watermark bitmap. Then render it as a background image in the activity.

How might I add a watermark effect to an image in Android? - Stack Overflow[^]