打印阴影和其他WPF效果 [英] Printing dropshadow and other WPF effects

查看:84
本文介绍了打印阴影和其他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效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆