网站首页  词典首页

请输入您要查询的函数:

 

术语 createpatternbrush
释义 CreatePatternBrush
语法:
HBRUSH CreatePatternBrush(
__in HBITMAP hbmp
);
CreatePatternBrush功能
该CreatePatternBrush函数创建一个与指定的位图模式的逻辑画笔。位图可以部分的DIB位图,它是由CreateDIBSection函数创建,也可以是一个依赖于设备的位图。
参数
骨形成蛋白 [in]
阿位图句柄将用于创建逻辑画笔。
返回值
如果函数成功,返回值确定一个逻辑画笔。
如果函数失败,返回值为NULL。
备注
一个模式画笔是一个位图,该系统使用的涂料填充形状的内部。
应用程序创建后,通过调用CreatePatternBrush一刷,可以选择到任何设备的情况下通过调用SelectObject函数画笔。
您可以删除不影响使用DeleteObject函数相关的位图图案画笔。因此,您就可以使用此位图创建任何数量的模式刷。
使用单色(每像素1位创建的刷子)位图的设备上下文它所制定的文本和背景颜色。像素代表1 0位是与当前文本颜色绘制;像素1 1位代表的是与当前的背景颜色绘制。
ICM的:没有颜色的画笔创作完成。然而,色彩管理时执行画笔是ICM的选择到一个启用的设备上下文。
实例
有关示例,请参阅使用画笔。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
Brushes 概述
Brush 函数
CreateBitmap
CreateBitmapIndirect
CreateCompatibleBitmap
CreateDIBPatternBrush
CreateDIBPatternBrushPt
CreateDIBSection
CreateHatchBrush
DeleteObject
GetBrushOrgEx
LoadBitmap
SelectObject
SetBrushOrgEx
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==CreatePatternBrush Function
The CreatePatternBrush function creates a logical brush with the specified bitmap pattern. The bitmap can be a DIB section bitmap, which is created by the CreateDIBSection function, or it can be a device-dependent bitmap.
Syntax
HBRUSH CreatePatternBrush(
__in HBITMAP hbmp
);
Parameters
hbmp [in]
A handle to the bitmap to be used to create the logical brush.
Return Value
If the function succeeds, the return value identifies a logical brush.
If the function fails, the return value is NULL.
Remarks
A pattern brush is a bitmap that the system uses to paint the interiors of filled shapes.
After an application creates a brush by calling CreatePatternBrush, it can select that brush into any device context by calling the SelectObject function.
You can delete a pattern brush without affecting the associated bitmap by using the DeleteObject function. Therefore, you can then use this bitmap to create any number of pattern brushes.
A brush created by using a monochrome (1 bit per pixel) bitmap has the text and background colors of the device context to which it is drawn. Pixels represented by a 0 bit are drawn with the current text color; pixels represented by a 1 bit are drawn with the current background color.
ICM: No color is done at brush creation. However, color management is performed when the brush is selected into an ICM-enabled device context.
Examples
For an example, see Using Brushes .
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
CreateBitmap
CreateBitmapIndirect
CreateCompatibleBitmap
CreateDIBPatternBrush
CreateDIBPatternBrushPt
CreateDIBSection
CreateHatchBrush
DeleteObject
GetBrushOrgEx
LoadBitmap
SelectObject
SetBrushOrgEx
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183508(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:20:02