Eri*_*ith 2 wpf xaml bitmapeffect
我有一个椭圆,只是一个圆圈.我的问题是我想从较大圆圈的中间切出一个圆形孔,似乎没什么用.我尝试了不透明面具,但那些都没有用.
为了使事情更复杂,大圆圈有一个DropShadowEffect.但由于圆圈略微透明,你可以看到它后面有一个大阴影圆圈.这不是模型的样子,我想知道是否有办法让阴影只出现在圆的边缘,无论圆圈是多么透明.
谢谢!
像这样例如:
<Canvas>
<Path Stroke="Black">
<Path.Data>
<CombinedGeometry GeometryCombineMode="Exclude">
<CombinedGeometry.Geometry1>
<EllipseGeometry Center="100,100" RadiusX="100" RadiusY="100"></EllipseGeometry>
</CombinedGeometry.Geometry1>
<CombinedGeometry.Geometry2>
<EllipseGeometry Center="100,100" RadiusX="80" RadiusY="80"></EllipseGeometry>
</CombinedGeometry.Geometry2>
</CombinedGeometry>
</Path.Data>
</Path>
</Canvas>
Run Code Online (Sandbox Code Playgroud)
对于影子:这也应该被解决,因为得到的对象是实际上是一个整体,它转了一圈,而不只是一个opacity-"绝招"