VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: SetDIBits(λͼ¡¢Í¼±ê)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:41:21 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ bloom Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Mon Apr 3 01:06:49 2000) WWW-POST
SetDIBits
VBÉùÃ÷
Declare Function SetDIBits Lib "gdi32" Alias "SetDIBits" (ByVal hdc As Long,
ByVal hBitmap As Long, ByVal nStartScan As Long, ByVal nNumScans As Long,
lpBits As Any, lpBI As BITMAPINFO, ByVal wUsage As Long) As Long
˵Ã÷
½«À´×ÔÓëÉ豸ÎÞ¹ØλͼµÄ¶þ½øÖÆλ¸´ÖƵ½Ò»·ùÓëÉ豸ÓйصÄλͼÀï
·µ»ØÖµ
Long£¬Ö´Ðгɹ¦Ôò·µ»ØɨÃèÏßµÄÊýÁ¿£¬Áã±íʾʧ°Ü¡£»áÉèÖÃGetLastError
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hdc Long£¬Ö¸ÏòÒ»¸öÉ豸³¡¾°µÄ¾ä±ú£¬ÄǸöÉ豸³¡¾°¶¨ÒåÁËÓëÉ豸ÓйØλͼ£¨hBitmap£©
µÄÅäÖÃ
hBitmap Long£¬Ä¿±êλͼµÄÒ»¸ö¾ä±ú¡£Õâ·ùλͼ¾ø¶Ô²»ÄÜÑ¡ÈëÒ»¸öÉ豸³¡¾°
nStartScan Long£¬lpBitsÊý×éÖеÚÒ»ÌõɨÃèÏߵıàºÅ¡£ÈçlpBIÖ®BITMAPINFOHEADER²¿·Ö
µÄbiHeight×Ö¶ÎÊÇÕýÊý£¬ÄÇôÕâÌõɨÃèÏ߾ͻá´ÓλͼµÄµ×²¿¿ªÊ¼¼ÆË㣻Èç¹ûÊǸºÊý£¬¾Í´Ó
¶¥²¿¿ªÊ¼¼ÆËã
nNumScans Long£¬Óû¸´ÖƵÄɨÃèÏßÊýÁ¿
¡¡ Any£¬Ö¸ÏòÒ»¸ö»º³åÇøµÄÖ¸Õë¡£Õâ¸ö»º³åÇø°üº¬ÁËÒÔDIB¸ñʽÃèÊöµÄλͼÊý¾Ý£»ÕâÖÖ¸ñ
ʽÊÇÓÉlpBIÖ¸¶¨µÄ
lpBI BITMAPINFO£¬¶ÔlpBits DIBµÄ¸ñʽºÍÑÕÉ«½øÐÐÃèÊöµÄÒ»¸ö½á¹¹
wUsage Long£¬ÏÂÊö³£ÊýÖ®Ò»
DIB_PAL_COLORS ÑÕÉ«±íÊÇÒ»¸öÕûÊýÊý×飬ÆäÖаüº¬ÁËÓëÄ¿Ç°Ñ¡ÈëhdcÉ豸³¡¾°µÄµ÷É«°åÏà
¹ØµÄË÷Òý
DIB_RGB_COLORS ÑÕÉ«±í°üº¬ÁËRGÑÕÉ«
×¢½â
ÓÃ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.739ºÁÃë