打印阴影和其他WPF效果

编程入门 行业动态 更新时间:2024-10-23 01:43:18
本文介绍了打印阴影和其他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效果

本文发布于:2023-11-12 03:50:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580429.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:阴影   效果   WPF

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!