网站首页  词典首页

请输入您要查询的函数:

 

术语 createpalette
释义 CreatePalette
语法:
HPALETTE CreatePalette(
__in const LOGPALETTE *lplgpl
);
CreatePalette功能
该CreatePalette函数创建一个逻辑调色板。
参数
lplgpl [in]
一个 LOGPALETTE结构,它包含有关在逻辑调色板的颜色信息的指针。
返回值
如果函数成功,返回值是一个句柄逻辑调色板。
如果函数失败,返回值为NULL。
备注
应用程序可以判断设备是否支持通过调用GetDeviceCaps函数并指定RASTERCAPS不断调色板行动。
一旦一个应用程序创建一个逻辑调色板,可以选择该到一个设备上下文通过调用SelectPalette函数调色板。到设备上下文选择调色板,可实现通过调用RealizePalette函数。
当您不再需要调色板,调用DeleteObject函数将其删除。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
颜色概述
颜色函数
DeleteObject
GetDeviceCaps
LOGPALETTE
RealizePalette
SelectPalette
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==CreatePalette Function
The CreatePalette function creates a logical palette.
Syntax
HPALETTE CreatePalette(
__in const LOGPALETTE *lplgpl
);
Parameters
lplgpl [in]
A pointer to a LOGPALETTE structure that contains information about the colors in the logical palette.
Return Value
If the function succeeds, the return value is a handle to a logical palette.
If the function fails, the return value is NULL.
Remarks
An application can determine whether a device supports palette operations by calling the GetDeviceCaps function and specifying the RASTERCAPS constant.
Once an application creates a logical palette, it can select that palette into a device context by calling the SelectPalette function. A palette selected into a device context can be realized by calling the RealizePalette function.
When you no longer need the palette, call the DeleteObject function to delete it.
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
DeleteObject
GetDeviceCaps
LOGPALETTE
RealizePalette
SelectPalette
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183507(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:17:45