函数参考


_WinAPI_SetDeviceGammaRamp

Sets the gamma ramp on direct color display boards that support downloadable gamma ramps in hardware.

#Include <WinAPIEx.au3>
_WinAPI_SetDeviceGammaRamp ( $hDC, Const ByRef $aRamp )

参数

$hDC Handle to a device context of the direct color display board in question.
$aRamp The 2D array ([r1, g1, b1], [r2, g2, b2], ... [r256, g256, b256]) that contains the gamma ramp to be set.
Each element in this array is an integer value with a range from 0 to 65535 which is a mapping between
RGB values in the frame buffer and digital-analog-converter (DAC) values. The RGB values must be stored
in the most significant bits of each WORD to increase DAC independence.

(查看MSDN得到更多信息)

返回值

成功: 返回 1.
失败: 返回 0 并设置 @error 标志为非 0 值.

注意/说明

Direct color display modes do not use color lookup tables and are usually 16, 24, or 32 bit. Not all direct
color video boards support loadable gamma ramps. The _WinAPI_SetDeviceGammaRamp() succeeds only for devices
with drivers that support downloadable gamma ramps in hardware.

相关

详情参考

在MSDN中搜索