读书人

枚举设备的色深解决办法

发布时间: 2012-02-16 21:30:36 作者: rapoo

枚举设备的色深
WinCE 4.2以上版本可以使用EnumDisplaySettings来枚举设备的色深等模式信息,但是WinCE4.2以下版本用什么方法获取呢?还有其他的方法来枚举设备的色深等模式信息吗?

[解决办法]
This function retrieves information about the capabilities of a specified device.

int GetDeviceCaps(
HDC hdc,
int nIndex
);
Parameters
hdc
[in] Handle to the device context.
nIndex
[in] Specifies the item to return.
This parameter can be one of the following values.

Value Description
ASPECTX Relative width of a device pixel used for line drawing.
ASPECTXY Diagonal width of the device pixel used for line drawing.
ASPECTY Relative height of a device pixel used for line drawing.
BITSPIXEL Number of adjacent color bits for each pixel.

读书人网 >WinCE

热点推荐