如何从打印机获取图像 [英] How Do I Get Image From Printer

查看:112
本文介绍了如何从打印机获取图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在打印其他应用程序时从打印机获取图像。我怎么能用虚拟打印机或打印驱动程序做到这一点。我想使用hook api或其他。 hook spool api或gdi api?我挂钩createdcw,创建一个dc使用createcompatibledc(printerdc)并返回memdc,但它无法工作,我还创建一个memdc使用createcompatibledc(null)并返回,这也无法正常工作...

i want get image from printer when other application print. how can i do that wiout using virtual printer or print driver. i want use hook api or others. hook spool api or gdi api? i hooked createdcw, create a dc use createcompatibledc(printerdc) and return the memdc, but it cannot work, i also create a memdc use createcompatibledc(null) and return, that cannot work too…

推荐答案

本文介绍如何使用打印API。



没有文档/视图框架的打印 [ ^ ]



寻找StartDoc / StartPage / EndPage / EndDoc。您可以拦截那些GDI函数。
This article shows how to use the printing API.

Printing without the Document/View framework[^]

Look for StartDoc/StartPage/EndPage/EndDoc. You may be able to intercept those GDI functions.


这篇关于如何从打印机获取图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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