We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
老哥,我使用一张透明的图片设置水印之后图片变成了黑色,要保持它的透明度需要什么特殊的处理吗
The text was updated successfully, but these errors were encountered:
@Goooler 这个可能是一个 bug,你使用的图片可以发一下吗?我试试看
Sorry, something went wrong.
wm_bg.png.zip
fun getWatermarkBitmap(bgBitmap: Bitmap, text: String, context: Context): Bitmap { val watermarkText = WatermarkText(text) .setPositionX(0.5) .setPositionY(0.5) .setTextAlpha(255) .setRotation(-30.0) .setTextColor(Color.BLACK) return WatermarkBuilder.create(context, bgBitmap) .setTileMode(true) .loadWatermarkText(watermarkText) .watermark.outputImage }
No branches or pull requests
老哥,我使用一张透明的图片设置水印之后图片变成了黑色,要保持它的透明度需要什么特殊的处理吗
The text was updated successfully, but these errors were encountered: