StackPanel中到图像的方法呢? [英] Stackpanel to Image methods?

查看:176
本文介绍了StackPanel中到图像的方法呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法把一个WPF页面上我现有的StackPanel,并将其发送给我的打印机阙作为图像?我有一些现有的印刷队代码,所以这不是我的问题的核心 - 我真的只是寻找到的StackPanel转换为图像的方式,我可以将它发送到打印阙

Is there a way to take my existing stackpanel on a WPF page and send it to my printer que as an image? I have some existing print que code so that's not really the core of my question - I'm really just looking to convert the stackpanel to an image in a way that I can send it to the print que.

推荐答案

尝试的 RenderTargetBitmap 类。

这篇关于StackPanel中到图像的方法呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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