网站首页  词典首页

请输入您要查询的函数:

 

术语 createbrushindirect
释义 CreateBrushIndirect
语法:
HBRUSH CreateBrushIndirect(
__in const LOGBRUSH *lplb
);
CreateBrushIndirect功能
该CreateBrushIndirect函数创建一个合乎逻辑的画笔具有指定样式,颜色和图案。
参数
lplb [in]
一个 LOGBRUSH结构,它包含有关刷信息的指针。
返回值
如果函数成功,返回值确定一个逻辑画笔。
如果函数失败,返回值为NULL。
备注
画笔是一个位图,该系统使用的涂料填充形状的内部。
应用程序创建后,通过调用CreateBrushIndirect一刷,它可以选择到任何设备上下文的SelectObject函数调用它。
通过使用一个单色位图(1色机,每像素位)创建的画笔绘制使用当前的文本和背景颜色。像素代表1位设置为0与当前的文本颜色绘制;像素1位代表的设置为1是与当前的背景颜色绘制。
当您不再需要刷,调用DeleteObject函数将其删除。
ICM的:没有颜色的画笔创作完成。然而,色彩管理时执行画笔是ICM的选择到一个启用的设备上下文。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
Brushes 概述
Brush 函数
DeleteObject
GetBrushOrgEx
LOGBRUSH
SelectObject
SetBrushOrgEx
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==CreateBrushIndirect Function
The CreateBrushIndirect function creates a logical brush that has the specified style, color, and pattern.
Syntax
HBRUSH CreateBrushIndirect(
__in const LOGBRUSH *lplb
);
Parameters
lplb [in]
A pointer to a LOGBRUSH structure that contains information about the 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 brush is a bitmap that the system uses to paint the interiors of filled shapes.
After an application creates a brush by calling CreateBrushIndirect, it can select it into any device context by calling the SelectObject function.
A brush created by using a monochrome bitmap (one color plane, one bit per pixel) is drawn using the current text and background colors. Pixels represented by a bit set to 0 are drawn with the current text color; pixels represented by a bit set to 1 are drawn with the current 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
DeleteObject
GetBrushOrgEx
LOGBRUSH
SelectObject
SetBrushOrgEx
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183487(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:29