网站首页  词典首页

请输入您要查询的函数:

 

术语 setpaletteentries
释义 SetPaletteEntries
语法:
UINT SetPaletteEntries(
__in HPALETTE hpal,
__in UINT iStart,
__in UINT cEntries,
__in const PALETTEENTRY *lppe
);
SetPaletteEntries功能
该SetPaletteEntries函数设置RGB(红,绿,蓝)颜色值和旗帜在逻辑调色板中的项目范围。
参数
hpal [in]
一个句柄,逻辑调色板。
iStart [in]
第一个逻辑调色板项被设置。
舜帝 [in]
在逻辑调色板项数设置。
lppe [in]
是对一个包含RGB值和标志PALETTEENTRY结构数组的第一个成员的指针。
返回值
如果函数成功,返回值是一些在逻辑调色板设置项目的数量。
如果函数失败,返回值是零。
备注
应用程序可以决定是否支持设备通过调用GetDeviceCaps函数并指定RASTERCAPS不断调色板行动。
即使逻辑调色板已经选好,实现对调色板变化不会影响到表面的物理调色板。 RealizePalette必须再次调用设置到表面的新的逻辑调色板。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
颜色概述
颜色函数
GetDeviceCaps
GetPaletteEntries
RealizePalette
PALETTEENTRY
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetPaletteEntries Function
The SetPaletteEntries function sets RGB (red, green, blue) color values and flags in a range of entries in a logical palette.
Syntax
UINT SetPaletteEntries(
__in HPALETTE hpal,
__in UINT iStart,
__in UINT cEntries,
__in const PALETTEENTRY *lppe
);
Parameters
hpal [in]
A handle to the logical palette.
iStart [in]
The first logical-palette entry to be set.
cEntries [in]
The number of logical-palette entries to be set.
lppe [in]
A pointer to the first member of an array of PALETTEENTRY structures containing the RGB values and flags.
Return Value
If the function succeeds, the return value is the number of entries that were set in the logical palette.
If the function fails, the return value is zero.
Remarks
An application can determine whether or not a device supports palette operations by calling the GetDeviceCaps function and specifying the RASTERCAPS constant.
Even if a logical palette has been selected and realized, changes to the palette do not affect the physical palette in the surface. RealizePalette must be called again to set the new logical palette into the surface.
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
GetPaletteEntries
RealizePalette
PALETTEENTRY
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145077(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:24:14