完善需求功能:使用用户配置的水印样式和图片质量,添加标题/内容文字样式配置

This commit is contained in:
2026-02-28 00:44:52 +08:00
parent aadfd5a296
commit d8fe374a16
5 changed files with 157 additions and 9 deletions

View File

@@ -79,9 +79,11 @@ object ImageProcessor {
val y = result.height - padding
// 绘制背景
if (style.backgroundColor != android.graphics.Color.TRANSPARENT) {
// 通过ARGB判断来决定是否绘制背景避免混用 Android Color 与 Compose Color 的类型问题
val bgColorInt = style.backgroundColor.toArgb()
if (bgColorInt != 0) {
val bgPaint = Paint(Paint.ANTI_ALIAS_FLAG).apply {
color = style.backgroundColor.toArgb()
color = bgColorInt
}
val bgRect = RectF(
x - 10,