完善需求功能:使用用户配置的水印样式和图片质量,添加标题/内容文字样式配置
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user