Printing dropshadow and other WPF effects

半世苍凉 提交于 2019-12-11 23:42:30

问题


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?


回答1:


You could render the UI to a bitmap and then print an Image that refers to the bitmap.



来源:https://stackoverflow.com/questions/5982306/printing-dropshadow-and-other-wpf-effects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!