请问打印机驱动的流程是什么样的?
也就是打印一份文件时如word文档,首先把这个文件转变成干什么,然后再干什么,或者谁知道哪里有这方面的资料?麻烦告诉我一下,谢谢!
也就是打印一份文件时如word文档,首先把这个文件转变成干什么,然后再干什么,或者谁知道哪里有这方面的资料?麻烦告诉我一下,谢谢!
解决方案 »
- mfc 创建静态分割视图,CMainFrame继承的是CMDIFrameWndEx,但是程序为什么会崩溃,请指教,不胜感谢。
- win7下webbrowser的GoBack方法失效(只能有效执行一次)
- 父类已经有ON_WM_LBUTTONDBLCLK()了,那其子类也要拦截WM_LBUTTONDBLCLK,咋办?
- rawsocket丢包的问题怎么解决阿
- 我的剪贴板程序不加入MessageBox()则运行错误, why? 急!
- 请问,如何用程序实现给IE设置代理。谢谢
- 怎么删去主对话框message map里增加的类
- 谁知道联众网络象棋的数据包结构?
- 怎样更改一个程序的名字?
- 如何存取数据通过串口接收的频谱仪波形数据?
- 开始建工程时未选中数据库支持,想加进access数据库访问和修改功能,如何实现?
- 小弟跪求!!如何把一个HBITMAP 类型的文件 用CFile file.write 存入硬盘中啊 谢谢高手了!!
Next, GDI calls the printer graphics DLL's DrvEnablePDEV function so the driver can create a physical device instance and return device characteristics. GDI uses the returned information to create an internal description of the device instance.
GDI then calls the graphics DLL's DrvCompletePDEV function to supply a GDI handle to the device instance. The graphics DLL must use this handle as input to some of the Eng-prefixed callbacks provided by the GDI drawing engine (see GDI Support Services).
After GDI receives the device instance handle, it then makes a call to the graphics DLL's DrvEnableSurface function, which sets up the surface for drawing, and associates it with the physical device instance.
The driver can create a drawing surface for the device instance by calling EngCreateBitmap. Alternatively, if the drawing surface is device-managed, the driver can call EngCreateDeviceSurface.
If EngCreateBitmap cannot supply a bitmap large enough to contain an entire physical page, and if the driver supports page banding, EngMarkBandingSurface can be called to inform GDI that banding will be employed.
Finally, the EngAssociateSurface must be called to allow GDI to associate the created surface with a specified device instance, and to let GDI know which driver-supplied graphics DDI drawing functions (if any) it should call when it draws on this particular surface.
At this point, a drawing surface has been created and rendering can begin. For each document to be rendered, GDI calls the following functions in the printer graphics DLL:DrvStartDoc
For each physical page {
DrvStartPage
DrvStartBanding
For each banding surface {
DrvQueryPerBandInfo
Rendering operations
DrvNextBand
}
DrvSendPage
}
DrvEndDoc
Display and Print Devices -> Design Guide -> Printer Drivers and Spooler Components -> Printer Driver Architecture