网站首页  词典首页

请输入您要查询的函数:

 

术语 createdibpatternbrush
释义 CreateDIBPatternBrush
语法:
HBRUSH CreateDIBPatternBrush(
__in HGLOBAL hglbDIBPacked,
__in UINT fuColorSpec
);
CreateDIBPatternBrush功能
该CreateDIBPatternBrush函数创建一个具有逻辑刷由指定的设备无关的位图(DIB)指定的模式。随后的画笔可以选择到任何设备上下文与一个设备支持光栅操作有关。
注意:此功能仅提供了兼容性与16位的Windows版本。应用程序应该使用CreateDIBPatternBrushPt功能。
参数
hglbDIBPacked [in]
一个句柄,全局内存对象,包含一个拥挤的DIB,其中一个BITMAPINFO结构中,立即组成由一个定义位图的像素的字节数组之后。
fuColorSpec [in]
指定是否BITMAPINFO结构的成员bmiColors初始化,如果是,该成员是否包含了明确的红,绿,蓝(RGB)值或索引到一个逻辑调色板。该fuColorSpec参数必须是下列值之一。
ValueMeaning
DIB_PAL_COLORSA提供色表和一组16包括进入设备的断章取义,把刷子是被选中的逻辑调色板位索引。
DIB_RGB_COLORSA颜色表提供,并包含文字RGB值。
返回值
如果函数成功,返回值确定一个逻辑画笔。
如果函数失败,返回值为NULL。
备注
当应用程序选择到一个设备上下文黑白两色的DIB图案画笔,系统不承认DIB中指定的颜色,而是显示模式刷使用当前的背景和前景颜色设备上下文。映射到DIB的第一个彩色像素(抵销的DIB颜色表1)显示使用前景色;像素映射到第二个颜色(抵消颜色表1)显示使用的背景颜色。
当您不再需要刷,调用DeleteObject函数将其删除。
ICM的:没有颜色的画笔创作完成。然而,色彩管理时执行画笔是ICM的选择到一个启用的设备上下文。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
Brushes 概述
Brush 函数
BITMAPINFO
CreateDIBPatternBrushPt
CreateHatchBrush
CreatePatternBrush
CreateSolidBrush
DeleteObject
SetBkColor
SetTextColor
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==CreateDIBPatternBrush Function
The CreateDIBPatternBrush function creates a logical brush that has the pattern specified by the specified device-independent bitmap (DIB). The brush can subsequently be selected into any device context that is associated with a device that supports raster operations.
Note This function is provided only for compatibility with 16-bit versions of Windows. Applications should use the CreateDIBPatternBrushPt function.
Syntax
HBRUSH CreateDIBPatternBrush(
__in HGLOBAL hglbDIBPacked,
__in UINT fuColorSpec
);
Parameters
hglbDIBPacked [in]
A handle to a global memory object containing a packed DIB, which consists of a BITMAPINFO structure immediately followed by an array of bytes defining the pixels of the bitmap.
fuColorSpec [in]
Specifies whether the bmiColors member of the BITMAPINFO structure is initialized and, if so, whether this member contains explicit red, green, blue (RGB) values or indexes into a logical palette. The fuColorSpec parameter must be one of the following values.
ValueMeaning
DIB_PAL_COLORSA color table is provided and consists of an array of 16-bit indexes into the logical palette of the device context into which the brush is to be selected.
DIB_RGB_COLORSA color table is provided and contains literal RGB values.

Return Value
If the function succeeds, the return value identifies a logical brush.
If the function fails, the return value is NULL.
Remarks
When an application selects a two-color DIB pattern brush into a monochrome device context, the system does not acknowledge the colors specified in the DIB; instead, it displays the pattern brush using the current background and foreground colors of the device context. Pixels mapped to the first color of the DIB (offset 0 in the DIB color table) are displayed using the foreground color; pixels mapped to the second color (offset 1 in the color table) are displayed using the background color.
When you no longer need the brush, call the DeleteObject function to delete it.
ICM: No color is done at brush creation. However, color management is performed when the brush is selected into an ICM-enabled device context.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Brushes Overview
Brush Functions
BITMAPINFO
CreateDIBPatternBrushPt
CreateHatchBrush
CreatePatternBrush
CreateSolidBrush
DeleteObject
SetBkColor
SetTextColor
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183492(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:25:59