使用 WPF 着色器绘制文本大纲
我试图用谷歌搜索它,但是有没有任何示例着色器效果,我可以用它来生成概述的格式化文本。我能够使用 BuildGeometry() 获得轮廓,但性能非常差!
PS:由于我对此很陌生并且仍在学习,如果有人可以建议是否会这样做,那将会很有帮助甚至可能或不可能。
I tried to google it out, but is there any sample Shader effect which I could use to produce an outlined FormattedText. I was able to get the outline by using BuildGeometry(), but the performance is very poor!
PS: Since I'm new to this and still learning, it would be helpful if anyone can suggest whether it would be even possible or not.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是我提出的一个简单的选择,但不确定它是否正是您想要的。只需使用
OuterGlowBitmapEffect
即可。您可以将我的示例直接粘贴到 Kaxaml 中查看其外观:
Here's an easy option I whipped up, but not sure if it's exactly what you want. Just use an
OuterGlowBitmapEffect
.You can paste my example straight into Kaxaml to see what it looks like: