网站首页  词典首页

请输入您要查询的函数:

 

术语 getnearestcolor
释义 GetNearestColor
语法:
COLORREF GetNearestColor(
__in HDC hdc,
__in COLORREF crColor
);
GetNearestColor功能
该GetNearestColor函数检索颜色值确定一个从系统调色板时,将显示指定的颜色值所使用的颜色。
参数
hdc [in]
一个句柄,设备上下文。
crColor [in]
阿色值,标识要求的颜色。要创建一个COLORREF颜色值,使用RGB宏。
返回值
如果函数成功,返回值标识从系统调色板对应于给定的颜色值的颜色。
如果函数失败,返回值是CLR_INVALID。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
颜色概述
颜色函数
GetDeviceCaps
GetNearestPaletteIndex
COLORREF
的RGB
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetNearestColor Function
The GetNearestColor function retrieves a color value identifying a color from the system palette that will be displayed when the specified color value is used.
Syntax
COLORREF GetNearestColor(
__in HDC hdc,
__in COLORREF crColor
);
Parameters
hdc [in]
A handle to the device context.
crColor [in]
A color value that identifies a requested color. To create a COLORREF color value, use the RGB macro.
Return Value
If the function succeeds, the return value identifies a color from the system palette that corresponds to the given color value.
If the function fails, the return value is CLR_INVALID.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Colors Overview
Color Functions
GetDeviceCaps
GetNearestPaletteIndex
COLORREF
RGB
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144902(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:29:14