术语 | createhalftonepalette |
释义 | CreateHalftonePalette 语法: HPALETTE CreateHalftonePalette( __in HDC hdc ); CreateHalftonePalette功能 该CreateHalftonePalette函数创建一个指定的设备上下文(DC)半色调调色板。 参数 hdc [in] 一个句柄,设备上下文。 返回值 如果函数成功,返回值是一个处理一个逻辑半色调调色板。 如果函数失败,返回值是零。 备注 应用程序应创建一个半色调调色板当一个设备上下文拉伸模式设置为半色调。半色调调色板逻辑产生的CreateHalftonePalette然后应选择并进入前StretchBlt或StretchDIBits函数功能的设备上下文实现被调用。 当您不再需要调色板,调用DeleteObject函数将其删除。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWingdi.h(头文件:winuser.h) LibraryGdi32.lib DLLGdi32.dll 参见 颜色概述 颜色函数 DeleteObject RealizePalette SelectPalette SetStretchBltMode StretchDIBits函数 StretchBlt 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==CreateHalftonePalette Function The CreateHalftonePalette function creates a halftone palette for the specified device context (DC). Syntax HPALETTE CreateHalftonePalette( __in HDC hdc ); Parameters hdc [in] A handle to the device context. Return Value If the function succeeds, the return value is a handle to a logical halftone palette. If the function fails, the return value is zero. Remarks An application should create a halftone palette when the stretching mode of a device context is set to HALFTONE. The logical halftone palette returned by CreateHalftonePalette should then be selected and realized into the device context before the StretchBlt or StretchDIBits function is called. 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 RealizePalette SelectPalette SetStretchBltMode StretchDIBits StretchBlt Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd183503(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。