有没有什么方法可以在picturebox上创建渐晕/边框效果,即用png图像作为覆盖/蒙版的另一个picturebox?我不想看到图片和背景之间的锐利边缘。
发布于 2011-07-25 20:53:55
您可以使用OpacityMask:类似于
<Image Width="200" Source="C:\Users\Public\Pictures\Sample Pictures\Chrysanthemum.jpg">
<Image.OpacityMask>
<RadialGradientBrush>
<GradientStop Offset="0.8" Color="#ffff"></GradientStop>
<GradientStop Offset="1" Color="#0fff"></GradientStop>
</RadialGradientBrush>
</Image.OpacityMask>
</Image>会产生一种小光晕的效果。
https://stackoverflow.com/questions/6385449
复制相似问题