VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: MaskBlt(λͼ¡¢Í¼±ê)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:39:57 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Mon Apr 3 01:05:37 2000) WWW-POST
MaskBlt
VBÉùÃ÷
Declare Function MaskBlt Lib "gdi32" Alias "MaskBlt" (ByVal hdcDest As Long,
ByVal nXDest As Long, ByVal nYDest As Long, ByVal nWidth As Long, ByVal
nHeight As Long, ByVal hdcSrc As Long, ByVal nXSrc As Long, ByVal nYSrc As
Long, ByVal hbmMask As Long, ByVal xMask As Long, ByVal yMask As Long, ByVal
dwRop As Long) As Long
˵Ã÷
Ö´Ðи´ÔÓµÄͼÏó´«Ê䣬ͬʱ½øÐÐÑÚÄ££¨MASK£©´¦Àí
·µ»ØÖµ
Long£¬·ÇÁã±íʾ³É¹¦£¬Áã±íʾʧ°Ü¡£»áÉèÖÃGetLastError
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hdcDest Long£¬Ä¿±êÉ豸³¡¾°
nXDest,nYDest Long£¬Ä¿±êͼÏó×óÉϽǵÄx,y×ø±ê
nWidth,nHeight Long£¬Í¼ÏóÔÚÄ¿±êÉ豸³¡¾°ÖеĿí¶ÈºÍ¸ß¶È
hdcSrc Long£¬Ô´É豸³¡¾°
nXSrc,nYSrc Long£¬Ô´Í¼ÏóµÄ×óÉϽÇx,y×ø±ê
hbmMask Long£¬×÷ΪÑÚģʹÓõÄÒ»·ùµ¥É«Î»Í¼µÄ¾ä±ú¡£Èç¹ûdwRop´úÂë°üÀ¨Ò»¸öÔ´£¬ÄÇô
Õâ·ùλͼ±ØÐëÓëÔ´³ß´çÏàͬ£¬·ñÔò±ØÐëÓëÄ¿±ê³ß´çÏà·û
xMask,yMask Long£¬µ¥É«ÑÚģλͼµÄx,yÆ«ÒÆ¡£ÕâÑù±ãÔÊÐíÎÒÃÇ´´½¨Ò»·ùʹÓÃÁ˶à¸öÑÚÄ£
µÄ´óÐÍλͼ
dwRop Long£¬Ò»ÖÖÌØÊâµÄ¹âÕ¤ÔËË㣬ÔÚ´«Êä¹ý³ÌÖÐʹÓÃ
ÊÊÓÃƽ̨
Windows NT
×¢½â
dwRop´úÂëÊÇÒ»ÖַDZê×¼µÄ¹âÕ¤ÔËËã´úÂ룬ÓÉÁ½¸öÆÕͨµÄ¹âÕ¤ÔËËã´úÂë×é³É£ºÒ»¸öÇ°¾°´ú
ÂëÒÔ¼°Ò»¸ö±³¾°´úÂë
ÔÚÑÚģλͼÉèΪ1µÄÿ¸öÏñËØ´¦£¬¶¼ÔÚ´«Êä¹ý³ÌÖÐÓ¦ÓÃÇ°¾°×ª»»´¦Àí¡£Èç¶ÔÓ¦µÄÑÚ±Îλͼ
ÏñËØΪÁ㣬ÔòÓ¦Óñ³¾°×ª»»¡£Èç¹ûδָ¶¨ÑÚģλͼ£¬ÄÇôÕâ¸öº¯Êý¾ÍÖ´ÐÐÓëBitBltÏàͬµÄ
²Ù×÷
Èç¹û¶ÔÔ´Ó¦ÓÃÁËÐýת»ò¼ôÇд¦Àí£¬Ôòº¯Êýµ÷Óûáʧ°Ü
×¢Òâ¿ÉÓÃGetDeviceCapsÅжÏÕâ¸öº¯ÊýÊÇ·ñµÃµ½ÁËÒ»¸öÌض¨É豸³¡¾°µÄÖ§³Ö
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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)
Ò³ÃæÖ´ÐÐʱ¼ä£º3.067ºÁÃë