VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: SetStretchBltMode(λͼ¡¢Í¼±ê)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:41:45 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ bloom Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Mon Apr 3 01:07:49 2000) WWW-POST
SetStretchBltMode
VBÉùÃ÷
Declare Function SetStretchBltMode Lib "gdi32" Alias "SetStretchBltMode"
(ByVal hdc As Long, ByVal nStretchMode As Long) As Long
˵Ã÷
Ö¸¶¨StretchBlt ºÍ StretchDIBitsº¯ÊýµÄÉìËõģʽ¡£ÕâÖÖÉìËõģʽ¶¨ÒåÁËWindowsÈçºÎ¶Ô
ÉìËõ¹ý³ÌÖÐÌÞ³ýµÄɨÃèÏß½øÐпØÖÆ¡£¶ÔÓÚVB´°ÌåºÍ¿Ø¼þ£¬ÌÈÈôÔÚAPI»æͼ¹ý³ÌÖÐʹÓÃÕâ¸ö
º¯Êý£¬½¨Òé»Ö¸´ÔÀ´µÄStretchBltģʽ
·µ»ØÖµ
Long£¬ÉÏÒ»´ÎÉìËõģʽµÄÖµ£¬Áã±íʾʧ°Ü
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hdc Long£¬É豸³¡¾°µÄ¾ä±ú
nStretchMode Long£¬ÐÂÉìËõģʽ½¨Á¢ÔÚÏÂÊöÈκÎÒ»¸ö³£ÊýµÄ»ù´¡ÉÏ£¬ËüÃǾùÔÚAPI32.TXT
ÎļþÖеõ½Á˶¨Ò壺
STRETCH_ANDSCANS ĬÈÏÉèÖá£ÌÞ³ýµÄÏ߶ÎÓëʣϵÄÏ߶νøÐÐANDÔËËã¡£Õâ¸öģʽͨ³£Ó¦ÓÃ
ÓÚ²ÉÓÃÁË°×É«±³¾°µÄµ¥É«Î»Í¼
STRETCH_DELETESCANS ÌÞ³ýµÄÏ߶α»¼òµ¥µÄÇå³ý¡£Õâ¸öģʽͨ³£ÓÃÓÚ²Êɫλͼ
STRETCH_ORSCANS ÌÞ³ýµÄÏ߶ÎÓëʣϵÄÏ߶νøÐÐORÔËËã¡£Õâ¸öģʽͨ³£Ó¦ÓÃÓÚ²ÉÓÃÁË°×É«
±³¾°µÄµ¥É«Î»Í¼
STRETCH_HALFTONE Ä¿±êλͼÉϵÄÏñËØ¿é±»ÉèΪԴλͼÉÏ´óÖ½üËƵĿ顣Õâ¸öģʽҪÃ÷ÏÔ
ÂýÓÚÆäËûģʽ
×¢½â
Èç¹ûÒª¶ÔÉìËõģʽÓÐÒ»¸ö¸üÉî¿ÌµÄÓ¡Ï󣬿ÉÏëÏóһ϶԰×ɫͼÏóÖеÄÒ»Ìõ°×ɫϸÏß½øÐÐѹ
Ëõ¡£Ñ¹Ëõ¹ý³ÌÖУ¬ÏñËØ»á´ÓͼÏóÖÐɾȥ¡£Îª±ÜÃâÏ߶ÎÏûʧ£¬ÔÚɾ³ýËüÃÇ֮ǰ£¬ÓбØÒªÏȶÔ
Ï߶ÎÖеÄÏñËØÓëÁÚ½üÏñËؽøÐÐANDÔËË㡣Ϊ´ïµ½Õâ¸öÄ¿µÄ£¬Ó¦¿¼ÂÇÑ¡ÓÃSTRETCH_ANDSCANS
ÉìËõģʽ
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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)
Ò³ÃæÖ´ÐÐʱ¼ä£º4.376ºÁÃë