GetDeviceCaps() 参数

本文详细介绍了GetDeviceCaps函数,用于检测设备的指定信息,包括驱动版本、设备分类、可打印区域大小、像素位深等关键参数。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 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 */

 

  

 

转载于:https://www.cnblogs.com/ericyi/p/4402964.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值