VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: StretchBlt(λͼ¡¢Í¼±ê)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:42:08 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ bloom Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Mon Apr 3 01:08:27 2000) WWW-POST
StretchBlt
VBÉùÃ÷
Declare Function StretchBlt Lib "gdi32" Alias "StretchBlt" (ByVal hdc As
Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight
As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal
nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long
˵Ã÷
½«Ò»·ùλͼ´ÓÒ»¸öÉ豸³¡¾°¸´ÖƵ½ÁíÒ»¸ö¡£Ô´ºÍÄ¿±êDCÏ໥¼ä±ØÐë¼æÈÝ¡£Õâ¸öº¯Êý»áÔÚÉè
±¸³¡¾°Öж¨ÒåÒ»¸öÄ¿±ê¾ØÐΣ¬²¢ÔÚλͼÖж¨ÒåÒ»¸öԴͼÏó¡£Ô´¾ØÐλá¸ù¾ÝÐèÒª½øÐÐÉìËõ£¬
ÒÔ±ãÓëÄ¿±ê¾ØÐεĴóСÏà·û
·µ»ØÖµ
Long£¬·ÇÁã±íʾ³É¹¦£¬Áã±íʾʧ°Ü¡£»áÉèÖÃGetLastError
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hdc Long£¬Ä¿±êÉ豸³¡¾°
x,y Long£¬Ä¿±ê¾ØÐÎ×óÉϽǵÄx,y×ø±ê£¬ÒÔÂß¼×ø±ê±íʾ
nWidth,nHeight Long£¬Ä¿±ê¾ØÐεĿí¶ÈºÍ¸ß¶È£¬ÒÔÂß¼×ø±ê±íʾ
hSrcDC Long£¬Ô´É豸³¡¾°¡£Èç¹âÕ¤ÔËËãδָ¶¨Ò»¸öÔ´£¬ÔòÕâ¸ö²ÎÊýӦΪÁã
xSrc,ySrc Long£¬ÓÃÔ´DCµÄÂß¼×ø±ê±íʾµÄÔ´¾ØÐÎ×óÉϽÇλÖÃ
nSrcWidth,nSrcHeight Long£¬·Ö±ðÖ¸¶¨ÓÃÂß¼µ¥Î»£¨ÒÔÔ´DCΪ»ù´¡£©´«ÊäµÄÒ»·ùͼÏóµÄ
¿í¶ÈºÍ¸ß¶È¡£ÈçÆäÖÐÓÐÒ»¸ö²ÎÊýµÄ·ûºÅ£¨Ö¸Õý¸ººÅ£©Óë¶ÔÓ¦µÄÄ¿±ê²ÎÊý²»·û£¬Î»Í¼¾Í»áÔÚ
¶ÔÓ¦µÄÖáÉÏ×÷¾µÏñת»»´¦Àí
dwRop Long£¬´«Êä¹ý³ÌÖнøÐеĹâÕ¤ÔËËã¡£ÈçË¢×ÓÊôÓÚ¹âÕ¤ÔËËãµÄÒ»²¿·Ö£¬¾ÍʹÓÃÑ¡ÈëÄ¿
±êDCµÄË¢×Ó
×¢½â
¿ÉÓÃGetDeviceCapsº¯ÊýÅжÏÌض¨µÄÉ豸³¡¾°ÊÇ·ñÖ§³Ö´Ëº¯Êý
²»¿ÉÑ¡Ôñ¶ÔԴλͼ½øÐмôÇлòÐýת´¦Àí£¬Ô´Î»Í¼Ò²²»ÄÜÊÇÒ»¸öͼԪÎļþÉ豸³¡¾°
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: blo0m.bbs@smth.org]
--
¡ù תÔØ:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: 202.118.247.254]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º2.913ºÁÃë