C language function:GetNearestPaletteIndex sample codes

Search sample code in the internet.It is the result.


TITLE : Stretching 256-Color Images Using Interpolation
UINT GetNearestPaletteIndex(COLORREF crColor) const;.......
http://msdn.microsoft.com/en-us/library/k372w66k.aspx


TITLE : Stretching 256-Color Images Using Interpolation
pixel = pDoc->m_pal.GetNearestPaletteIndex(RGB((r1+r2)/2,.......
http://msdn.microsoft.com/en-us/library/ms969922.aspx
TITLE : GetNearestPaletteIndex function (Windows)
UINT GetNearestPaletteIndex(.......
http://msdn.microsoft.com/en-us/library/windows/desktop/dd144903(v=vs.85).aspx
TITLE : 【PB】PowerBuilder API Site
FUNCTION ulong GetNearestPaletteIndex(ulong hPalette,ulong crColor) LIBRARY "gdi32.dll".......
http://www.360doc.com/content/13/0216/20/11408198_266000549.shtml
search Google

https://www.google.com/#q=GetNearestPaletteIndex