小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

GetDeviceCaps來(lái)取得顯示的關(guān)資訊

 啟蒙彩魂 2011-02-26

CDC::GetDeviceCaps 

int GetDeviceCaps( int nIndex ) const;

返回值

The value of the requested capability if the function is successful.

如果成功,則返回所需要的能力值。

參數(shù)說(shuō)明

nIndex

Specifies the type of information to return. It can be any one of the following values:

指定返回信息類型,可為下列值之一:

  • DRIVERVERSION   Version number; for example, 0x100 for 1.0.

    DRIVERVERSION 版本號(hào),例如:0x100表示1.0版
  • TECHNOLOGY   Device technology. It can be any one of the following:

    TECHNOLOGY 設(shè)備技術(shù),可為下列值之一:
Value Meaning
DT_PLOTTER Vector plotter矢量繪圖機(jī)
DT_RASDISPLAY Raster display光柵顯示
DT_RASPRINTER Raster printer光柵打印機(jī)
DT_RASCAMERA Raster camera光柵照相機(jī)
DT_CHARSTREAM Character stream字符流
DT_METAFILE Metafile元文件
DT_DISPFILE Display file顯示文件

  • HORZSIZE   Width of the physical display (in millimeters).

    物理顯示寬度(以毫米為單位)
  • VERTSIZE   Height of the physical display (in millimeters).

    物理顯示高度(以毫米為單位)
  • HORZRES   Width of the display (in pixels).

    顯示寬度(用像素表示)。
  • VERTRES   Height of the display (in raster lines).

    顯示高度(用光柵線表示)。
  • LOGPIXELSX   Number of pixels per logical inch along the display width.

    沿顯示寬度方向,每一邏輯單位的像素?cái)?shù)
  • LOGPIXELSY   Number of pixels per logical inch along the display height.

    沿顯示高度方向,每一邏輯單位的像素?cái)?shù)
  • BITSPIXEL   Number of adjacent color bits for each pixel.

    每一像素的顏色字節(jié)數(shù)
  • PLANES   Number of color planes.

    顏色位面數(shù)。
  • NUMBRUSHES   Number of device-specific brushes.

    指定設(shè)備的畫(huà)刷數(shù)目
  • NUMPENS   Number of device-specific pens.

    指定設(shè)備的畫(huà)筆數(shù)目。
  • NUMFONTS   Number of device-specific fonts.

    指定設(shè)備的畫(huà)筆數(shù)目。
  • NUMCOLORS   Number of entries in the device’s color table.

    指定設(shè)備的畫(huà)筆數(shù)目。
  • ASPECTX   Relative width of a device pixel as used for line drawing.

    用于描線的設(shè)備像素的相對(duì)寬度。
  • ASPECTY   Relative height of a device pixel as used for line drawing.

    用于描線的設(shè)備像素的相對(duì)高度。
  • ASPECTXY   Diagonal width of the device pixel as used for line drawing.

    用于描線的設(shè)備像素的對(duì)角線寬度
  • PDEVICESIZE   Size of the PDEVICE internal data structure.

    PDEVICE內(nèi)部數(shù)據(jù)結(jié)構(gòu)的尺寸
  • CLIPCAPS   Clipping capabilities of the device. It can be one of the following:

    設(shè)備的剪切能力。可以為以下值之一:
Value Meaning
CP_NONE Output is not clipped.輸出被剪切
CP_RECTANGLE Output is clipped to rectangles.輸出被剪切到矩形
CP_REGION Output is clipped to regions.輸出被剪切到區(qū)域

  • SIZEPALETTE   Number of entries in the system palette. This index is valid only if the device driver sets the RC_PALETTE bit in the RASTERCAPS index.

    SIZEPALETTE 系統(tǒng)調(diào)色板的入口數(shù)。只有設(shè)置驅(qū)動(dòng)程序在RASTERCAPS索引中設(shè)置了RC_PALETTE,該參數(shù)才有效
  • NUMRESERVED   Number of reserved entries in the system palette. This index is valid only if the device driver sets the RC_PALETTE bit in the RASTERCAPS index.

    NUMRESERVER 系統(tǒng)調(diào)色板的保留的入口數(shù)。只有設(shè)置驅(qū)動(dòng)程序在RASTERCAPS索引中設(shè)置了RC_PALETTE,該參數(shù)才有效。
  • COLORRES   Actual color resolution of the device in bits per pixel. This index is valid only if the device driver sets the RC_PALETTE bit in the RASTERCAPS index.

    COLORRES 設(shè)備實(shí)際的顏色分辨率,用位/像素表示。只有設(shè)置驅(qū)動(dòng)程序在RASTERCAPS索引中設(shè)置了RC_PALETTE,該參數(shù)才有效。
  • RASTERCAPS   Value that indicates the raster capabilities of the device. It can be a combination of the following:

    RASTERCAPS 表示設(shè)備光柵能力的值??梢詾橐韵轮档慕M合:
Value Meaning
RC_BANDING Requires banding support.
需要綁定支持
RC_BIGFONT Supports fonts larger than 64K.
支持大于64K的字體
RC_BITBLT Capable of transferring bitmaps.
具有傳輸位圖的能力
RC_BITMAP64 Supports bitmaps larger than 64K.
支持大于64K的位圖
RC_DEVBITS Supports device bitmaps.
支持設(shè)備位圖
RC_DI_BITMAP Capable of supporting the SetDIBits and GetDIBits Windows functions.
具有支持SetDIBits和GetDIBits Windows 函數(shù)的能力
RC_DIBTODEV Capable of supporting the SetDIBitsToDevice Windows function.
具有支持SetDIBitsToDevice Windows 函數(shù)的能力
RC_FLOODFILL Capable of performing flood fills.
具有全面填充能力
RC_GDI20_OUTPUT Capable of supporting Windows version 2.0 features.
支持Windows 2.0
RC_GDI20_STATE Includes a state block in the device context.
設(shè)備上下文中包括狀態(tài)塊
RC_NONE Supports no raster operations.
不支持光柵操作
RC_OP_DX_OUTPUT Supports dev opaque and DX array.
支持設(shè)備白底和DX數(shù)組
RC_PALETTE Specifies a palette-based device.
指定基于調(diào)色板的設(shè)備
RC_SAVEBITMAP Capable of saving bitmaps locally.
支持在本地保存位圖的能力
RC_SCALING Capable of scaling.
具有縮放能力
RC_STRETCHBLT Capable of performing the StretchBlt member function.
能執(zhí)行StretchBlt成員函數(shù)
RC_STRETCHDIB Capable of performing the StretchDIBits Windows function.
能執(zhí)行Windows StretchDIBits函數(shù)

  • CURVECAPS   The curve capabilities of the device. It can be a combination of the following:
  • CURVECAS設(shè)備的曲線能力??蔀橐韵轮档慕M合:
Value Meaning
CC_NONE Supports curves.支持曲線
CC_CIRCLES Supports circles.支持圓
CC_PIE Supports pie wedges.支持餅圖
CC_CHORD Supports chords.支持弧
CC_ELLIPSES Supports ellipses.支持橢圓
CC_WIDE Supports wide borders.支持寬邊界
CC_STYLED Supports styled borders.支持邊界風(fēng)格
CC_WIDESTYLED Supports wide, styled borders.支持加寬的邊界風(fēng)格
CC_INTERIORS Supports interiors.支持內(nèi)部功能
CC_ROUNDRECT Supports rectangles with rounded corners.支持圓角矩形

  • LINECAPS   Line capabilities the device supports. It can be a combination of the following:
  • LINECAPS設(shè)備的繪制直線能力??蔀橐韵轮档慕M合:
Value Meaning
LC_NONE Supports no lines.不支持直線
LC_POLYLINE Supports polylines.支持多直線
LC_MARKER Supports markers.支持標(biāo)記
LC_POLYMARKER Supports polymarkers.支持多標(biāo)記
LC_WIDE Supports wide lines.支持加寬直線
LC_STYLED Supports styled lines.支持直線風(fēng)格
LC_WIDESTYLED Supports wide, styled lines.支持加寬的直線風(fēng)格
LC_INTERIORS Supports interiors.支持內(nèi)部功能

  • POLYGONALCAPS   Polygonal capabilities the device supports. It can be a combination of the following:
Value Meaning
PC_NONE Supports no polygons.不支持多邊形
PC_POLYGON Supports alternate fill polygons.支持多邊形
PC_RECTANGLE Supports rectangles.支持矩形
PC_WINDPOLYGON Supports winding number fill polygons.支持多邊形的彎曲數(shù)目
PC_SCANLINE Supports scan lines.支持掃描直線
PC_WIDE Supports wide borders.支持加寬邊界
PC_STYLED Supports styled borders.支持邊界風(fēng)格
PC_WIDESTYLED Supports wide, styled borders.支持加寬的直線風(fēng)格
PC_INTERIORS Supports interiors.支持內(nèi)部功能

  • TEXTCAPS   Text capabilities the device supports. It can be a combination of the following:
  • TEXTCAPS設(shè)備繪制文本的能力??蔀橐韵轮档慕M合:
Value Meaning
TC_OP_CHARACTER Supports character output precision, which indicates the device can place device fonts at any pixel location. This is required for any device with device fonts.
支持字符精確輸出,設(shè)備可將設(shè)備字體置于任何像素位置。這要求設(shè)備帶有設(shè)備字體
TC_OP_STROKE Supports stroke output precision, which indicates the device can omit any stroke of a device font.
支持筆畫(huà)精確輸出,設(shè)備可覆蓋設(shè)備字體的重復(fù)動(dòng)作
TC_CP_STROKE Supports stroke clip precision, which indicates the device can clip device fonts to a pixel boundary.
支持筆畫(huà)剪切輸出,設(shè)備可在像素邊界剪切設(shè)備字體
TC_CR_90 Supports 90-degree character rotation, which indicates the device can rotate characters only 90 degrees at a time.
支持90度的字符旋轉(zhuǎn),設(shè)備一次只能旋轉(zhuǎn)字符90度
TC_CR_ANY Supports character rotation at any degree, which indicates the device can rotate device fonts through any angle.
支持任意角度的字符旋轉(zhuǎn),設(shè)備可以把設(shè)備字體旋轉(zhuǎn)到任意角度
TC_SF_X_YINDEP Supports scaling independent of x and y directions, which indicates the device can scale device fonts separately in x and y directions.
支持x,y方向上的獨(dú)立度量,設(shè)備可以分別從x,y方向上度量設(shè)備字體
TC_SA_DOUBLE Supports doubled characters for scaling, which indicates the device can double the size of device fonts.
支持度量倍增字符,設(shè)備可將設(shè)備字體放大一倍
TC_SA_INTEGER Supports integer multiples for scaling, which indicates the device can scale the size of device fonts in any integer multiple.
支持整數(shù)倍度量。設(shè)備可將設(shè)備字體放大至任意整數(shù)倍
TC_SA_CONTIN Supports any multiples for exact scaling, which indicates the device can scale device fonts by any amount but still preserve the x and y ratios.
支持任意倍度量。設(shè)備可將設(shè)備字體放大至任意倍。但仍保持X和Y的比率
TC_EA_DOUBLE Supports double-weight characters, which indicates the device can make device fonts bold. If this bit is not set for printer drivers, GDI attempts to create bold device fonts by printing them twice.
支持字符重量加倍,設(shè)備字體可設(shè)置為粗體。如果此位沒(méi)有設(shè)置打印驅(qū)動(dòng)程序。GDI將通過(guò)兩次打印的方法創(chuàng)建粗體的設(shè)備字體
TC_IA_ABLE Supports italics, which indicates the device can make device fonts italic. If this bit is not set, GDI assumes italics are not available.
支持斜體字符,設(shè)備字體可設(shè)置為斜體。如果此位沒(méi)有設(shè)置,GDI認(rèn)為不能得到斜體
TC_UA_ABLE Supports underlining, which indicates the device can underline device fonts. If this bit is not set, GDI creates underlines for device fonts.
支持下劃線,設(shè)備字體可設(shè)置為下劃線。如果此位沒(méi)有設(shè)置,GDI為設(shè)備字體創(chuàng)建下劃線
TC_SO_ABLE Supports strikeouts, which indicates the device can strikeout device fonts. If this bit is not set, GDI creates strikeouts for device fonts.
支持空心字符,設(shè)備字體可設(shè)置為空心。如果此位沒(méi)有設(shè)置,GDI為設(shè)備字體創(chuàng)建空心
TC_RA_ABLE Supports raster fonts, which indicates that GDI should enumerate any raster or TrueType fonts available for this device in response to a call to the EnumFonts or EnumFontFamilies Windows functions. If this bit is not set, GDI-supplied raster or TrueType fonts are not enumerated when these functions are called.
支持光柵字體,GDI應(yīng)為設(shè)備列舉可用的光柵或TrueType字體,以便對(duì)EnumFonts或EnumFontFamilies函數(shù)的調(diào)用作出反應(yīng)。如果此位沒(méi)有設(shè)置,當(dāng)這些函數(shù)調(diào)用時(shí),光柵或字體不會(huì)加以列舉
TC_VA_ABLE Supports vector fonts, which indicates that GDI should enumerate any vector fonts available for this device in response to a call to the EnumFonts or EnumFontFamilies Windows functions. This is significant for vector devices only (that is, for plotters). Display drivers (which must be able to use raster fonts) and raster printer drivers always enumerate vector fonts, because GDI rasterizes vector fonts before sending them to the driver.
支持矢量字體,GDI應(yīng)為設(shè)備列舉可用的矢量或TrueType字體,以便對(duì)EnumFonts或EnumFontFamilies函數(shù)的調(diào)用作出反應(yīng)。這對(duì)矢量設(shè)備很重要(如繪圖機(jī)),顯示程序(它們必須使用光柵字體)和光柵打印驅(qū)動(dòng)程序列舉矢量字體,因?yàn)镚DI在將矢量字體送到驅(qū)動(dòng)程序之前要將其進(jìn)行光柵處理
TC_RESERVED Reserved; must be 0.
反轉(zhuǎn),必須設(shè)置為0

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多