VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: CreateCompatibleBitmap(λͼ¡¢Í¼±ê)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:35:31 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Mon Apr 3 00:42:53 2000) WWW-POST
CreateCompatibleBitmap
VBÉùÃ÷
Declare Function CreateCompatibleBitmap Lib "gdi32" Alias "CreateCompatibleBit
map" (ByVal hdc As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
˵Ã÷
´´½¨Ò»·ùÓëÉ豸ÓйØλͼ£¬ËüÓëÖ¸¶¨µÄÉ豸³¡¾°¼æÈÝ
·µ»ØÖµ
Long£¬Ö´Ðгɹ¦·µ»Øλͼ¾ä±ú£¬Áã±íʾʧ°Ü
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hdc Long£¬É豸³¡¾°µÄ¾ä±ú
nWidth Long£¬Î»Í¼¿í¶È£¬ÒÔÏñËØΪµ¥Î»
nHeight Long£¬Î»Í¼¸ß¶È£¬ÒÔÏñËØΪµ¥Î»
×¢½â
ÄÚ´æÉ豸³¡¾°¼´Óë²Êɫλͼ¼æÈÝ£¬Ò²Ó뵥ɫλͼ¼æÈÝ¡£Õâ¸öº¯ÊýµÄ×÷ÓÃÊÇ´´½¨Ò»·ùÓ뵱ǰ
Ñ¡ÈëhdcÖеij¡¾°¼æÈÝ¡£¶ÔÒ»¸öÄڴ泡¾°À´Ëµ£¬Ä¬ÈϵÄλͼÊǵ¥É«µÄ¡£ÌÈÈôÄÚ´æÉ豸³¡¾°
ÓÐÒ»¸öDIBSectionÑ¡ÈëÆäÖУ¬Õâ¸öº¯Êý¾Í»á·µ»ØDIBSectionµÄÒ»¸ö¾ä±ú¡£ÈçhdcÊÇÒ»·ùÉè
±¸Î»Í¼£¬ÄÇô½á¹ûÉú³ÉµÄλͼ¾Í¿Ï¶¨¼æÈÝÓÚÉ豸£¨Ò²¾ÍÊÇ˵£¬²ÊÉ«É豸Éú³ÉµÄ¿Ï¶¨ÊDzÊÉ«
λͼ£©
Èç¹ûnWidthºÍnHeightΪÁ㣬·µ»ØµÄλͼ¾ÍÊÇÒ»¸ö1¡Á1µÄµ¥É«Î»Í¼
Ò»µ©Î»Í¼²»ÔÙÐèÒª£¬Ò»¶¨ÓÃDeleteObjectº¯ÊýÊÍ·ÅËüÕ¼ÓõÄÄÚ´æ¼°×ÊÔ´
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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)
Ò³ÃæÖ´ÐÐʱ¼ä£º2.525ºÁÃë