代码之家  ›  专栏  ›  技术社区  ›  Kacper

使文本在模糊图像上更可见

  •  3
  • Kacper  · 技术社区  · 7 年前

    这就是我制作模糊的方式:

    await BlurBackround.Blur(value: 7, duration: 10, delay: 0).StartAsync();
    

    它看起来是这样的: enter image description here

    问题在于图像的白色元素。有没有办法在模糊之前使图像更暗,或者使文字字母成为黑色边框?

    2 回复  |  直到 7 年前
        1
  •  8
  •   AlexDrenea    7 年前

    确保文本在图像上可见的常见模式是在文本和图像组件之间应用不透明度为0.2-0.3的纯黑颜色层。

        2
  •  2
  •   user8162574 user8162574    7 年前