GetDeviceCaps

检测设备指定信息

参数:

#define DRIVERVERSION 0     /* 设备驱动版本               */
#define TECHNOLOGY 2 /* Device classification */
#define HORZSIZE 4 /* 可打印区域宽度,毫米 */
#define VERTSIZE 6 /* 可打印区域高度,毫米 */
#define HORZRES 8 /* 可打印区域宽度,像素 */
#define VERTRES 10 /* 可打印区域高度,像素 */
#define BITSPIXEL 12 /* 像素位深 */
#define PLANES 14 /* Number of planes */
#define NUMBRUSHES 16 /* Number of brushes the device has */
#define NUMPENS 18 /* Number of pens the device has */
#define NUMMARKERS 20 /* Number of markers the device has */
#define NUMFONTS 22 /* Number of fonts the device has */
#define NUMCOLORS 24 /* Number of colors the device supports */
#define PDEVICESIZE 26 /* Size required for device descriptor */
#define CURVECAPS 28 /* Curve capabilities */
#define LINECAPS 30 /* Line capabilities */
#define POLYGONALCAPS 32 /* Polygonal capabilities */
#define TEXTCAPS 34 /* Text capabilities */
#define CLIPCAPS 36 /* Clipping capabilities */
#define RASTERCAPS 38 /* Bitblt capabilities */
#define ASPECTX 40 /* Length of the X leg */
#define ASPECTY 42 /* Length of the Y leg */
#define ASPECTXY 44 /* 设备对角线长度,单位像素 */

#define LOGPIXELSX 88 /* 水平方向,每英寸像素数                */
  #define LOGPIXELSY 90 /* 垂直方向,每英寸像素数                 */

// Printing related DeviceCaps. These replace the appropriate Escapes

#define PHYSICALWIDTH 110 /* 设备物理宽度,像素 Physical Width in device units */
#define PHYSICALHEIGHT 111 /* 设备物理高度,像素 Physical Height in device units */
#define PHYSICALOFFSETX 112 /* 纸张可打印区域左边距,单位像素 Physical Printable Area x margin */
#define PHYSICALOFFSETY 113 /* 纸张可打印区域上边距,单位像素 Physical Printable Area y margin */
#define SCALINGFACTORX 114 /* Scaling factor x */
#define SCALINGFACTORY 115 /* Scaling factor y */

  

最新文章

  1. PHP环境配置
  2. WebView返回时设置Title
  3. 分布式服务框架 Zookeeper -- 管理分布式环境中的数据(转载)
  4. Android 图片开发内幕系列第一篇
  5. HTML5数组方法
  6. centos 6.7 perl 版本 This is perl 5, version 22 安装DBI DBD
  7. ABP启动配置
  8. PHP开发中需要注意几点事项,新手少走弯路必备知识
  9. POI导出excel并下载(以流的形式在客户端下载,不保存文件在服务器上)
  10. ElasticSearch(五):Java操作ElasticSearch执行查询
  11. redis底层设计(三)——redis数据类型
  12. Gitlab-通过API管理问题
  13. python面向对象重新梳理
  14. ABP框架入门踩坑-使用MySQL
  15. django1.8读书笔记模型高级进阶
  16. 201621123010《Java程序设计》第6周学习总结
  17. linux 流量统计
  18. mysql查看锁表与解锁
  19. HDU 2191 珍惜现在,感恩生活(多重背包模板题)
  20. codeforces 353D 递推 找规律

热门文章

  1. MySQL Workbench 导出数据库脚本(图文)
  2. delphi 完全控制Excel 文件
  3. KVC, KVO实现原理剖析
  4. 射频识别技术漫谈(12)——三次相互认证【worldsing笔记】
  5. 【Stage3D学习笔记续】真正的3D世界(三):纹理效果
  6. 一步一步学android控件(之十五) —— DegitalClock & AnalogClock
  7. 推荐eclipse velocity一款插件 --- veloeclipse
  8. Innodb 锁 (简单笔记)
  9. OpenCV快速遍历矩阵元素方法
  10. C++11 std::bind std::function 高级使用方法