Rect::IntersectsWith 方法 (gdiplustypes.h)
Rect::IntersectsWith 方法确定此矩形是否与另一个矩形相交。
语法
BOOL IntersectsWith(
[in] const Rect & rect
);
参数
[in] rect
类型: const Rect&
对要测试的矩形的引用。
返回值
类型: BOOL
如果两个矩形的交集不为空,则此方法返回 TRUE;否则,它将返回 FALSE。
要求
最低受支持的客户端 | Windows XP、Windows 2000 Professional [仅限桌面应用] |
最低受支持的服务器 | Windows 2000 Server [仅限桌面应用] |
目标平台 | Windows |
标头 | gdiplustypes.h (包括 Gdiplus.h) |
Library | Gdiplus.lib |
DLL | Gdiplus.dll |
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈