如何在Android中使用滑行将图像和文本作为水印添加到位图图像

问题描述

捕获照片后,我已成功将图像保存到本地文件

Bitmap bitmap = BitmapFactory.decodeByteArray(data,data.length,options);

if (rotation != 0) {
    Matrix mat = new Matrix();
    mat.postRotate(rotation);
    Bitmap bitmap1 = Bitmap.createBitmap(bitmap,bitmap.getWidth(),bitmap.getHeight(),mat,true);
    if (bitmap != bitmap1) {
        bitmap.recycle();
    }
    imagePath = getSavePhotoLocal(bitmap1);
    if (bitmap1 != null) {
        bitmap1.recycle();
    }
} else {
    imagePath = getSavePhotoLocal(bitmap);
    if (bitmap != null) {
        bitmap.recycle();
    }
}

如何添加如下所示的水印,它具有TextImagebackground layer to highlight text

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)