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 值. |
在MSDN中搜索