网站首页  词典首页

请输入您要查询的函数:

 

术语 resizepalette
释义 ResizePalette
语法:
BOOL ResizePalette(
__in HPALETTE hpal,
__in UINT nEntries
);
ResizePalette功能
ResizePalette功能的增加或减少对指定值为基础的逻辑调色板的大小。
参数
hpal [in]
到句柄调色板改变。
nEntries [in]
调色板中的条目后,人数已调整大小。
参赛作品的数量限制为1024。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
应用程序可以判断设备是否支持通过调用GetDeviceCaps函数并指定RASTERCAPS不断调色板行动。
如果一个应用程序调用ResizePalette减少调色板的大小,参赛作品中剩余的调色板大小不变。如果应用程序调用ResizePalette扩大调色板,额外的调色板项设置为黑色(红色,绿色和蓝色值都是0)及其标志设置为零。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
颜色概述
颜色函数
GetDeviceCaps
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==ResizePalette Function
The ResizePalette function increases or decreases the size of a logical palette based on the specified value.
Syntax
BOOL ResizePalette(
__in HPALETTE hpal,
__in UINT nEntries
);
Parameters
hpal [in]
A handle to the palette to be changed.
nEntries [in]
The number of entries in the palette after it has been resized.
The number of entries is limited to 1024.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
An application can determine whether a device supports palette operations by calling the GetDeviceCaps function and specifying the RASTERCAPS constant.
If an application calls ResizePalette to reduce the size of the palette, the entries remaining in the resized palette are unchanged. If the application calls ResizePalette to enlarge the palette, the additional palette entries are set to black (the red, green, and blue values are all 0) and their flags are set to zero.
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
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162928(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 13:23:20