VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: CombineRgn(É豸³¡¾°)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:35:21 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Sun Apr 2 23:49:03 2000) WWW-POST
CombineRgn
VBÉùÃ÷
Declare Function CombineRgn Lib "gdi32" Alias "CombineRgn" (ByVal hDestRgn As
Long, ByVal hSrcRgn1 As Long, ByVal hSrcRgn2 As Long, ByVal nCombineMode As
Long) As Long
˵Ã÷
½«Á½¸öÇøÓò×éºÏΪһ¸öÐÂÇøÓò
·µ»ØÖµ
Long£¬ÏÂÁг£ÊýÖ®Ò»£º
COMPLEXREGION£ºÇøÓòÓл¥ÏཻµþµÄ±ß½ç
SIMPLEREGION£ºÇøÓò±ß½çûÓл¥Ïཻµþ
NULLREGION£ºÇøÓòΪ¿Õ
ERRORAPI£º²»ÄÜ´´½¨×éºÏÇøÓò
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hDestRgn Long£¬°üº¬×éºÏ½á¹ûµÄÇøÓò¾ä±ú
hSrcRgn1 Long£¬Ô´ÇøÓò1
hSrcRgn2 Long£¬Ô´ÇøÓò2
nCombineMode Long£¬×éºÏÁ½ÇøÓòµÄ·½·¨¡£¿ÉÉèΪÏÂÊö³£Êý
RGN_AND hDestRgn±»ÉèÖÃΪÁ½¸öÔ´ÇøÓòµÄ½»¼¯
RGN_COPY hDestRgn±»ÉèÖÃΪhSrcRgn1µÄ¿½±´
RGN_DIFF hDestRgn±»ÉèÖÃΪhSrcRgn1ÖÐÓëhSrcRgn2²»ÏཻµÄ²¿·Ö
RGN_OR hDestRgn±»ÉèÖÃΪÁ½¸öÇøÓòµÄ²¢¼¯
RGN_XOR hDestRgn±»ÉèÖÃΪ³ýÁ½¸öÔ´ÇøÓòORÖ®ÍâµÄ²¿·Ö
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: casi.bbs@smth.org]
--
¡ù תÔØ:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: 202.118.247.254]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º5.151ºÁÃë