GetNearestColor |
VB聲明 |
|
Declare Function GetNearestColor Lib "gdi32" Alias "GetNearestColor" (ByVal hdc As Long, ByVal crColor As Long) As Long |
|
說明 |
|
根據(jù)設(shè)備的顯示能力,取得與指定顏色最接近的一種純色 |
|
返回值 |
|
Long,取得與指定顏色最接近的一種顏色,這種顏色可由設(shè)備場景實際顯示出來(給定當前系統(tǒng)調(diào)色板)。如返回CLR_INVALID,表示函數(shù)執(zhí)行出錯。會設(shè)置GetLastError |
|
參數(shù)表 |
|
參數(shù) |
類型及說明 |
hdc |
Long,設(shè)備場景的句柄 |
crColor |
Long,欲測試的RGB顏色 |
Top |