在不设置打印页面的情况下打印图像 [英] Print an image without print page setup

查看:96
本文介绍了在不设置打印页面的情况下打印图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

玩得开心

我使用Visual C ++ 2010
如何在不显示打印页面设置的情况下打印图像?
使用CImage和CDC.

谢谢.

have a good time

I work with visual c++ 2010
how can i print an image without show print page setup?
with CImage and CDC.

thank you.

推荐答案

使用
Use the PrintDlgEx()[^] function to get a DC to the printer, which you then draw your image onto. There is probably something slightly simpler in MFC but it''s a while since I used those classes ...


这篇关于在不设置打印页面的情况下打印图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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