VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: CreateBitmap(λͼ¡¢Í¼±ê)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:35:29 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Mon Apr 3 00:42:17 2000) WWW-POST
CreateBitmap
VBÉùÃ÷
Declare Function CreateBitmap Lib "gdi32" Alias "CreateBitmap" (ByVal nWidth
As Long, ByVal nHeight As Long, ByVal nPlanes As Long, ByVal nBitCount As
Long, lpBits As Any) As Long
˵Ã÷
°´Õչ涨µÄ¸ñʽ´´½¨Ò»·ùÓëÉ豸ÓйØλͼ
·µ»ØÖµ
Long£¬Ö´Ðгɹ¦·µ»ØλͼµÄ¾ä±ú£¬Áã±íʾʧ°Ü
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
nWidth Long£¬Î»Í¼¿í¶È£¬ÒÔÏñËØΪµ¥Î»
nHeight Long£¬Î»Í¼¸ß¶È£¬ÒÔÏñËØΪµ¥Î»
nPlanes Long£¬É«²ãÊýÁ¿
nBitCount Long£¬Ã¿ÏñËصÄλÊý
lpBits Any£¬Ö¸ÏòÓûÔØÈëλͼµÄÊý¾ÝµÄÖ¸Õë¡£¿ÉÉèΪÁ㣬±íʾ²»¶Ôλͼ½øÐгõʼ»¯£¨ÓÃ
ByVal´«µÝÒ»¸öÁãÖµ£©¡£Õâ¸öÊý¾ÝµÄ¸ñʽ±ØÐëÓëÉ豸µÄÒªÇóÏà·û¡£É¨ÃèÏß±ØÐë¶ÔÆë16λ×Ö
±ß½ç
×¢½â
Ò»µ©²»ÔÙÐèÒª£¬¼ÇסÓÃDeleteObjectº¯ÊýÊÍ·ÅλͼռÓõÄÄÚ´æºÍ×ÊÔ´
¿ÉÓÃÕâ¸öº¯Êý´´½¨µ¥É«Î»Í¼£¨1²ã£¬Ã¿ÏñËØһ룩¡£¶ÔÓÚ²Êɫλͼ£¬ÔòӦʹÓÃ
CreateCompatibleBitmap¡£Õâ¸öº¯Êý¿ÉÒÔʤÈι¤×÷£»µ«Òª×¢Ò⣬ÓÃËü´´½¨µÄλͼÔÚʹÓÃʱ
»áÉÔÂýһЩ£¬ÒòΪWindowsÿ´ÎʹÓõÄʱºò¶¼±ØÐë¼ì²éËüµÄλͼ¸ñʽ
Èç¹ûnWidthºÍnHeightΪÁ㣬·µ»ØµÄλͼ¾ÍÊÇÒ»¸ö1¡Á1µÄµ¥É«Î»Í¼
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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.495ºÁÃë