*****************************************************************************
* *
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY *
* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE *
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR *
* PURPOSE. *
* *
* Copyright (C) 1993-95 Microsoft Corporation. All Rights Reserved. *
* *
*****************************************************************************
The BITMAP.DRV takes an application's "print out" and stores it in
device-independent format (DIB). The structure of a DIB is as
follows:
===============================
= BITMAPFILEHEADER =
= =
= BITMAPINFOHEADER =
= =
= DIB's color table (if one) =
= =
= DIB's image =
===============================
The BITMAP.DRV is very simplistic (no extensive error checking, keeps
the whole "print out" in a global allocated buffer before writing to
disk). The BITMAP.DRV is intended to be a starting point for
fax/bitmap drivers that want to use UNIDRV.DLL. The BITMAP.DRV is
installed as a normal printer driver would be.
The source in BITMAP.C demonstrates the use of UNIDRV's Dump() callback
function. Basically, UNIDRV will write all of its printer escape
sequences (specified as escape 0 in RC file) to the nul file. The
BITMAP.DRV doesn't want these escape sequences to be written to the DIB
file. So, the BITMAP.DRV intercepts the raster output from UNIDRV
through the use of fnDump() in BITMAP.C. BITMAP.DRV takes care of
DWORD aligning the scan lines and opening, writing to, and closing the
DIB file.
The BITMAP.DRV creates the DIB file at STARTDOC time and will write
the image to the file at ENDDOC time and then close the file.
NOTE: You may have to add the BITMAPFILEHEADER declaration to your
GDIDEFS.INC (or some other include file) if the compiler doesn't
recognize it.
打印机驱动源码
4星 · 超过85%的资源 需积分: 50 95 浏览量
2013-10-11
13:50:13
上传
评论 9
收藏 87KB RAR 举报
sangzijin
- 粉丝: 27
- 资源: 139
最新资源
- 数据结构课程设计-全国交通出行咨询模拟系统C语言实现源码.zip
- cef-binary-109.0.1+gcd5e37a+chromium-109.0.5414.8-windows32
- 基于C语言的全国交通咨询系统模拟源码.zip
- 炫酷代码雨,超级炫酷哦!!!
- 基于物联网MQTT协议的智能停车场管理系统
- POETIZE个人博客系统源码 - 最美博客
- 基于深度学习的行人检测系统源码+项目说明(YoloV3+Tensorflow).zip
- 区块链系统:以比特币为基础
- 直接插入排序(Insertion Sort)是一种简单直观的排序算法.txt
- Python实现基于深度学习的预测区域电力负荷模型源码+项目说明(高分项目).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
- 1
- 2
前往页