多边形求交集,实在是写不出来啊,求帮忙

秦帅 2019-06-30 03:26:10
...全文
84 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2019-07-01
  • 打赏
  • 举报
回复
CombineRgn The CombineRgn function combines two regions and stores the result in a third region. The two regions are combined according to the specified mode. int CombineRgn( HRGN hrgnDest, // handle to destination region HRGN hrgnSrc1, // handle to source region HRGN hrgnSrc2, // handle to source region int fnCombineMode // region combining mode ); Parameters hrgnDest Handle to a new region with dimensions defined by combining two other regions. (This region must exist before CombineRgn is called.) hrgnSrc1 Handle to the first of two regions to be combined. hrgnSrc2 Handle to the second of two regions to be combined. fnCombineMode Specifies a mode indicating how the two regions will be combined. This parameter can be one of the following values: Value Description RGN_AND Creates the intersection of the two combined regions. RGN_COPY Creates a copy of the region identified by hrgnSrc1. RGN_DIFF Combines the parts of hrgnSrc1 that are not part of hrgnSrc2. RGN_OR Creates the union of two combined regions. RGN_XOR Creates the union of two combined regions except for any overlapping areas. Return Values The return value specifies the type of the resulting region. It can be one of the following values: Value Meaning NULLREGION The region is empty. SIMPLEREGION The region is a single rectangle. COMPLEXREGION The region is more than a single rectangle. ERROR No region is created. Remarks The three regions need not be distinct. For example, the hrgnSrc1 parameter can equal the hrgnDest parameter. QuickInfo Windows NT: Requires version 3.1 or later. Windows: Requires Windows 95 or later. Windows CE: Requires version 1.0 or later. Header: Declared in wingdi.h. Import Library: Use gdi32.lib. See Also Regions Overview, Region Functions, CreateEllipticRgn, CreateEllipticRgnIndirect, CreatePolygonRgn, CreatePolyPolygonRgn, CreateRectRgn, CreateRectRgnIndirect, CreateRoundRectRgn

64,644

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧