本文介绍了打印阴影和其他WPF效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用WPF应用程序,用户可以在其中打印多页报告。我正在使用大部分工作正常的DocumentPaginator。直到我介绍任何一种效果,例如内置的阴影或亮度/对比度效果。我猜想这与打印机内置的Pixelshader缺乏有关。有关修复或解决方法的任何建议吗?
I am working on a WPF application where the user can print multipage reports. I am using the DocumentPaginator which is working well for the most part. That is until I introduce any sort of effect such as the built in dropshadow or a brightness/contrast effect I have. I am guessing it has something to do with the lack of pixelshader built into printers. Any suggestions for a fix or workaround?
推荐答案您可以将UI渲染为位图,然后打印引用该位图的图像
You could render the UI to a bitmap and then print an Image that refers to the bitmap.
更多推荐
打印阴影和其他WPF效果
发布评论