网站首页  词典首页

请输入您要查询的函数:

 

术语 setbrushorgex
释义 SetBrushOrgEx
语法:
BOOL SetBrushOrgEx(
__in HDC hdc,
__in int nXOrg,
__in int nYOrg,
__out LPPOINT lppt
);
SetBrushOrgEx功能
该SetBrushOrgEx函数设置刷起源GDI的指派下刷应用到指定的设备上下文选择。
参数
hdc [in]
一个句柄,设备上下文。
nXOrg [in]
的x坐标,设备单位,新刷的起源。如果此值大于刷宽度,其值为减少使用模运算符(nXOrg模刷宽度)。
nYOrg [in]
在y坐标,设备单位,新刷的起源。如果此值大于高度的画笔,它的价值是减少使用模运算符(nYOrg模刷高度)。
lppt [out]
一个POINT结构,它接收前刷起源指针。
此参数可以是NULL如果以前刷的起源并不是必需的。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
画笔是一个位图,该系统使用的涂料填充形状的内部。
毛笔的起源是一对坐标指定位图的一个像素的位置。默认刷起源的坐标是(0,0)。对于Level坐标值0对应的像素最左边一列,宽度对应右边的列。垂直坐标值0对应的像素至上行;高度最低层对应的行。
系统会自动跟踪所有窗口原点管理设备上下文和调整,以保持必要的图案表面对齐的刷子。毛笔的起源与此呼叫设置是相对于左上角客户区的角落。
应用程序应设置后调用位图拉伸使用SetStretchBltMode模式半色调SetBrushOrgEx。必须做到这一点,以避免刷偏差。
系统会自动跟踪所有窗口原点管理设备上下文和调整,以保持必要的图案表面对齐的刷子。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
Brushes 概述
Brush 函数
GetBrushOrgEx

SelectObject
SetStretchBltMode
UnrealizeObject
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetBrushOrgEx Function
The SetBrushOrgEx function sets the brush origin that GDI assigns to the next brush an application selects into the specified device context.
Syntax
BOOL SetBrushOrgEx(
__in HDC hdc,
__in int nXOrg,
__in int nYOrg,
__out LPPOINT lppt
);
Parameters
hdc [in]
A handle to the device context.
nXOrg [in]
The x-coordinate, in device units, of the new brush origin. If this value is greater than the brush width, its value is reduced using the modulus operator (nXOrg mod brush width).
nYOrg [in]
The y-coordinate, in device units, of the new brush origin. If this value is greater than the brush height, its value is reduced using the modulus operator (nYOrg mod brush height).
lppt [out]
A pointer to a POINT structure that receives the previous brush origin.
This parameter can be NULL if the previous brush origin is not required.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
A brush is a bitmap that the system uses to paint the interiors of filled shapes.
The brush origin is a pair of coordinates specifying the location of one pixel in the bitmap. The default brush origin coordinates are (0,0). For horizontal coordinates, the value 0 corresponds to the leftmost column of pixels; the width corresponds to the rightmost column. For vertical coordinates, the value 0 corresponds to the uppermost row of pixels; the height corresponds to the lowermost row.
The system automatically tracks the origin of all window-managed device contexts and adjusts their brushes as necessary to maintain an alignment of patterns on the surface. The brush origin that is set with this call is relative to the upper-left corner of the client area.
An application should call SetBrushOrgEx after setting the bitmap stretching mode to HALFTONE by using SetStretchBltMode . This must be done to avoid brush misalignment.
The system automatically tracks the origin of all window-managed device contexts and adjusts their brushes as necessary to maintain an alignment of patterns on the surface.
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
GetBrushOrgEx
POINT
SelectObject
SetStretchBltMode
UnrealizeObject
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162967(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:18:24