ÓÑÇéÌáʾ£ºÈç¹û±¾ÍøÒ³´ò¿ªÌ«Âý»òÏÔʾ²»ÍêÕû£¬Çë³¢ÊÔÊó±êÓÒ¼ü¡°Ë¢Ð¡±±¾ÍøÒ³£¡ÔĶÁ¹ý³Ì·¢ÏÖÈκδíÎóÇë¸æËßÎÒÃÇ£¬Ð»Ð»£¡£¡ ±¨¸æ´íÎó
·É¶ÁÖÐÎÄÍø ·µ»Ø±¾ÊéĿ¼ ÎÒµÄÊé¼Ü ÎÒµÄÊéÇ© TXTÈ«±¾ÏÂÔØ ½øÈëÊé°É ¼ÓÈëÊéÇ©

windows»·¾³ÏÂ32λ»ã±àÓïÑÔ³ÌÐòÉè¼Æ-µÚ57ÕÂ

°´¼üÅÌÉÏ·½Ïò¼ü ¡û »ò ¡ú ¿É¿ìËÙÉÏÏ·­Ò³£¬°´¼üÅÌÉ쵀 Enter ¼ü¿É»Øµ½±¾ÊéĿ¼ҳ£¬°´¼üÅÌÉÏ·½Ïò¼ü ¡ü ¿É»Øµ½±¾Ò³¶¥²¿£¡
¡ª¡ª¡ª¡ªÎ´ÔĶÁÍꣿ¼ÓÈëÊéÇ©ÒѱãÏ´μÌÐøÔĶÁ£¡




ÔÚËùÓеÄROPÂëÖУ¬¿ÉÒÔÓÃÔÚPatBltº¯ÊýÖеÄÖ»ÓÐÒ»²¿·Ö£¬ËùÓÐËã·¨Öаüº¬Ô´ÏñËصÄROPÂëÔÚPatBltº¯ÊýÖж¼²»ÄÜʹÓã¬ÒòΪPatBltº¯ÊýÖ»Éæ¼°µ±Ç°»­Ë¢ºÍÄ¿±êÏñËØ£¬²¢Ã»ÓÐÒ»¸ö¡°Ô´ÏñËØ¡±£¬ËùÒÔ¶ÔÓÚÕâ¸öº¯ÊýÀ´Ëµ£¬±í7¡£6ÖеÄROPÂëÖÐÖ»ÓÐBLACKNESS£¬WHITENESS£¬DSTINVERT£¬PATINVERTºÍPATCOPYÊÇ¿ÉÓõġ£

2¡£¡¡BitBltº¯Êý

PatBltº¯ÊýÄÜÍê³ÉµÄ¹¤×÷BitBltº¯Êý¶¼ÄÜÍê³É£¬BitBltÊÇ¡°Êý¾Ý¿é´«ËÍ¡±µÄÒâ˼£¬¼´¡°Bit¡¡Block¡¡Transfer¡±¡£BitBltº¯ÊýµÄÓ÷¨ÊÇ£º

invoke¡¡¡¡¡¡¡¡BitBlt£¬hDcDest£¬xDest£¬yDest£¬dwWidth£¬dwHeigt£¬

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡hDcSrc£¬xSrc£¬ySrc£¬dwROP

Õâ¸öº¯Êý½«Ô´hDcSrcÖÐÒÔ£¨xSrc£¬ySrc£©Îª×óÉϽǵÄÒ»¸ö¾ØÐÎÇøÓò´«Ë͵½Ä¿±êhDcDestÖÐÒÔ£¨xDest£¬yDest£©Îª×óÉϽǵĵط½È¥£¬¾ØÐεĿí¶ÈΪdwWidth£¬¸ß¶ÈΪdwHeight£¬µ±È»Ä¿±êDCÖеÄ×îºó½á¹ûÊÇÓÉdwROPÖеÄROPÂ붨ÒåµÄÔ´¡¢Ä¿±êºÍ»­Ë¢ÈýÕßÊý¾ÝµÄ×éºÏ¡£

Áé»îʹÓÃROPÂë¿ÉÒÔʵÏֺܶàµÄ¹¦ÄÜ£¬±ÈÈçÔÚÒ»¸ö±³¾°Í¼Æ¬Éϵþ¼ÓÒ»¸ö·Ç¾ØÐεÄλͼ£¬ÓÎÏ·³ÌÐòÖÐÈËÎïÔÚ±³¾°ÉÏÃæµÄÒƶ¯¾ÍÊÇÕâÑùµÄÒ»¸öÀý×Ó¡£BmpClock³ÌÐòÖÐҲʵÏÖÁËÀàËƵŦÄÜ¡ª¡ª¶ÁÕß¿ÉÒÔ×¢Òâµ½£¬³ÌÐò¿ÉÒÔ×ÔÓɸü»»±³¾°ºÍ±ß¿ò£¬µ«ÊDZ߿òÊÇÖпյģ¬ËüÏ൱ÓÚÒÔÒ»¸ö²»¹æÔòµÄͼÐεþ¼ÓÔÚ±³¾°ÉÏÃ棬ͼ7¡£10ʾ·¶ÁËʵÏֵķ½·¨¡£

·ÖÎöÒ»ÏÂBmpClock¡£asmÖеÄ_CreateBackGround×Ó³ÌÐò¾Í¿ÉÒÔ·¢ÏÖ£¬³ÌÐòÓõ½ÁË×ÊÔ´ÖеÄBack1¡£bmp£¬Mask1¡£bmpºÍCircle1¡£bmpÕâ3¸öͼƬ£¨ÔÚͼ7¡£10ÖÐÒÔA£¬B£¬CÀ´±íʾ£©£¬×Ó³ÌÐò½«3¸öͼƬװÈëÄÚ´æºó£¬´´½¨ÁË3¸öDCÀ´´æÈ¡ËüÃÇ£¬¶ÔÓ¦µÄDC¾ä±ú·Ö±ð·ÅÔÚ@hBmpBack£¬@hBmpMaskºÍ@hBmpCircleÖС£

ºÃÁË£¡ÏÖÔÚµÄÈÎÎñÊǽ«Í¼Æ¬CÖÐÐèÒªµÄ²¿·Ö£¨·ÇºÚÉ«²¿·Ö£©Í¸Ã÷µþ·ÅÔÚÒÔͼƬAÐγɵı³¾°ÉÏ£¬µÃµ½Ê±ÖÓ±³¾°Í¼Æ¬D¡£¼ÌÐø×ö×¼±¸¹¤×÷£ºÎªÍ¼Æ¬D½¨Á¢Ò»¸öδ³õʼ»¯Î»Í¼ºÍÄÚ´æDC£¬DC¾ä±ú´æ·ÅÔÚhDcBackÖС£


ͼ7¡£10¡¡¡¡ÔÚ±³¾°Éϵþ¼Ó²»¹æÔòͼÐεķ½·¨

Èçͼ7¡£10ÖеIJ½Öè1Ëùʾ£¬Ê×ÏÈ£¬³ÌÐòÓÃCreatePatternBrush½¨Á¢ÒÔͼƬAΪͼ°¸µÄ»­Ë¢£¬ÓÃPatBltº¯ÊýÒÔÕâ¸ö»­Ë¢Ìî³äÕû¸öͼƬ£º

¡¡¡¡¡¡¡¡invoke¡¡¡¡CreatePatternBrush£»@hBmpBack

¡¡¡¡¡¡¡¡push¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡eax

¡¡¡¡¡¡¡¡invoke¡¡¡¡SelectObject£»hDcBack£»eax

¡¡¡¡¡¡¡¡invoke¡¡¡¡PatBlt£»hDcBack£»0£»0£»CLOCK_SIZE£»CLOCK_SIZE£»PATCOPY

¡¡¡¡¡¡¡¡pop¡¡¡¡¡¡¡¡¡¡eax

¡¡¡¡¡¡¡¡invoke¡¡¡¡DeleteObject£»eax

ÏÖÔÚÈç¹ûÖ±½Ó½«Í¼Æ¬C¿½±´ÉÏÈ¥£¬ËäÈ»ÐèÒªµÄ²¿·ÖÊÇ¿½±´ÉÏÈ¥ÁË£¬µ«ÊÇͼƬCÖеĺÚÉ«²¿·ÖÒ²»á¸²¸ÇÈ«²¿µÄ±³¾°ÏñËØ£¬ÎªÁËÈúÚÉ«²¿·ÖµÄ±³¾°ÏñËر£³Ö²»±ä£¬Ó¦¸ÃʹÓÃor²Ù×÷£¬ÒòΪºÚÉ«µÄÑÕɫֵΪ0£¬ÈκÎÊý¾ÝºÍ0½øÐÐor²Ù×÷½«±£³Ö²»±ä£¬²é¿´ROPÂë¿ÉÒÔ·¢ÏÖ£¬SRCPAINTʹÓõÄÊÇor²Ù×÷£¬ËùÒÔ¿ÉÒÔʹÓÃSRCPAINT²Ù×÷Âë½øÐÐBitBlt²Ù×÷¡£

µ«»¹ÓиöÎÊÌ⣺ͼƬCÖеķǺÚÉ«²¿·ÖÈç¹ûÒ²ÓÃor²Ù×÷»æ»­µ½±³¾°ÉÏ£¬ÄÇô¾­¹ýºÍ±³¾°ÏñËصÄor²Ù×÷ºó¾Í²»ÊÇÔ­À´µÄÑÕÉ«ÖµÁË£¬ÎªÁËÈÃÕⲿ·Ö²»±ä£¬½â¾öµÄ°ì·¨ÊÇÔ¤ÏȽ«±³¾°ÖжÔÓ¦µÄ²¿·ÖÏÈ»æÖƳɺÚÉ«£¬ÕâÑù¶ÔӦͼƬCÖеĺÚÉ«²¿·Ö½«±£³Ö±³¾°ÑÕÉ«£¬¶ø·ÇºÚÉ«²¿·Ö½«Ê¹ÓÃͼƬCÖеÄÏñËØ¡£ÕÚÑÚͼƬB¾ÍÊÇÕâÑùÓõģ¬ËüÊÇÒ»¸öºÚ°×Á½É«µÄͼƬ£¬ºÚÉ«²¿·ÖÊÇͼƬCÖÐÒªÔÚ±³¾°ÉÏ¡°ïοա±µÄ²¿·Ö£¬ÔÚ²½Öè2ÖУ¬³ÌÐòʹÓÃÏÂÁÐÓï¾ä½«Í¼Æ¬BÓÃSRCAND²Ù×÷Âë»æÖƵ½±³¾°ÉÏ£º

invoke¡¡¡¡BitBlt£»hDcBack£»0£»0£»CLOCK_SIZE£»CLOCK_SIZE£»@hDcMask£»0£»0£»SRCAND

²é±í7¡£6¿ÉÒÔ·¢ÏÖ£¬SRCAND½øÐÐÔ´ÏñËغÍÄ¿±êÏñËصÄand²Ù×÷£¬ÈκÎÊýºÍ1½øÐÐand½«±£³Ö²»±ä£¬ºÍ0½øÐÐand½«±ä³É0£¬ÕâÑù±³¾°ÖжÔӦͼƬBÖеİ×É«²¿·Ö½«±£³Ö²»±ä£¬¶ÔӦͼƬBÖеĺÚÉ«²¿·Ö½«±»¡°ïοա±¡£

½ÓÏÂÀ´¾ÍÊÇ×îºóµÄ²½Öè3ÁË£º

invoke¡¡¡¡BitBlt£»hDcBack£»0£»0£»CLOCK_SIZE£»CLOCK_SIZE£»@hDcCircle£»0£»0£»SRCPAINT



¡¡
À´Ô´£ºµç×Ó¹¤Òµ³ö°æÉç¡¡×÷ÕߣºÂÞÔƱò¡¡ÉÏÒ»Ò³¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡»ØÊéÄ¿¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÏÂÒ»Ò³¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
ÉÏÒ»Ò³¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡»ØÊéÄ¿¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÏÂÒ»Ò³¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡


µÚ7Õ¡¡Í¼ÐβÙ×÷


7¡£4¡¡¿é´«ËͲÙ×÷£¨2£©

¡¡¡¡¡¡¡¡
³ÌÐòÓÃSRCPAINT²Ù×÷Â뽫ͼƬCºÍÒѾ­ïοյı³¾°½øÐÐor²Ù×÷£¬µÃµ½µÄ½á¹û¾ÍÊǽ«ÓÉÕÚÑÚͼƬBÖ¸¶¨µÄͼƬCÖеIJ»¹æÔòÇøÓò»­µ½Á˱³¾°ÉÏÃæ¡£

ΪÁ˼ò»¯Æð¼û£¬BmpClock³ÌÐòÖеÄÕÚÑÚͼƬÊÇÔ¤ÏÈÉè¼ÆºÃµÄ£¬Êµ¼ÊʹÓÃÖÐÒ²¿ÉÒÔͨ¹ýɨÃèԴλͼÖеÄÏñËØ룬ÕÒ³ö±³¾°ÑÕÉ«²¢¶¯Ì¬Éú³ÉÒ»¸öÕÚÑÚλͼ£¬ËäÈ»ÕâÑù¿ÉÄܶÔËÙ¶ÈÓÐһЩӰÏ죬µ«Áé»îÐÔÒª¸ßµÃ¶à¡£

ÔÚÓÎÏ·³ÌÐòÖУ¬½«Ò»¸ö²»¹æÔòµÄͼÐÎÈçÈË»òÎïÌåµÈͼÐεþ¼Óµ½±³¾°ÉÏÃæʹÓõľÍÊÇÕâÑùµÄ¼¼Êõ¡£

3¡£¡¡MaskBltº¯Êý

MaskBltº¯ÊýÔÊÐíÔÚÒ»¸öͼƬÖжԲ»Í¬µÄ²¿·ÖÒÔ²»Í¬µÄROPÂë½øÐвÙ×÷£¬ËüµÄÓï·¨ÊÇ£º

¡¡¡¡¡¡¡¡invoke¡¡¡¡MaskBlt£¬hDcDest£¬xDest£¬yDest£¬dwWidth£¬dwHeigt£¬

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡hDcSrc£¬xSrc£¬ySrc£¬hMaskBmp£¬xMask£¬yMask£¬dwROP

ËüºÍBitBltµÄ²»Í¬Ö®´¦ÊǶàÁËÒ»¸öÕÚÑÚͼƬ¾ä±úhMaskBmp£¨×¢Ò⣺ÊÇλͼ¾ä±ú¶ø²»ÊÇDC¾ä±ú£©ÒÔ¼°hMaskBmpµÄ¿ªÊ¼×ø±ê¡£

MaskBltº¯ÊýͬÑùÊǽ«hDcSrcÒÔ£¨xSrc£¬ySrc£©Îª×óÉϽǵľØÐÎÇøÓòÒÔÖ¸¶¨ROPÂë²Ù×÷·½Ê½´«Ë͵½hDcDestÖÐÒÔ£¨xDest£¬yDest£©Îª×óÉϽǵľØÐÎÇøÓòÖУ¬¾ØÐεĿí¶ÈºÍ¸ß¶ÈÓÉdwWidthºÍdwHeightÖ¸¶¨£¬º¯ÊýµÄÌØÊâÖ®´¦ÊÇ¿ÉÒÔÖ¸¶¨Á½¸öROPÂ룬´«ËÍʱʹÓÃÄĸöROPÂëÒª²Î¿¼ÕÚÑÚͼƬ£¬²Î¿¼µÄλÖôÓÕÚÑÚͼƬµÄ£¨xMask£¬yMask£©×ø±ê¿ªÊ¼¡£

hMaskBmpÖ¸¶¨ÁËÒ»·ùºÚ°×λͼ£¬Èç¹ûλͼÖжÔӦλÖõÄÏñËØΪºÚ£¨¼´Îª0£©£¬ÄÇôʹÓñ³¾°ROPÂ룬Èç¹û¶ÔӦλÖõÄÏñËØΪ°×£¨¼´Îª1£©£¬ÄÇôʹÓÃÇ°¾°ROPÂë¡£×¢Ò⣺ÕÚÑÚλͼһ¶¨ÒªÊǺڰ×Á½É«µÄ£¬Èç¹ûʹÓÃÆäËûÑÕÉ«Éî¶ÈµÄλͼ£¬ÄÇôº¯Êýµ÷Óý«»áʧ°Ü¡£

¶ÁÕßÒ»¶¨ÓиöÎÊÌ⣺²ÎÊýÖÐÖ»ÓÐÒ»¸ödwROP²ÎÊý£¬ÈçºÎÖ¸¶¨Á½¸öROPÂ룿ÕâÕýÊÇÕâ¸öº¯Êý±È½Ï·Ñ½âµÄµØ·½£¬Êµ¼ÊÉÏdwROP²ÎÊýÊÇÁ½¸öROPÂëµÄ×éºÏ£¬×éºÏµÄËã·¨ÊÇ£º

£¨£¨±³¾°ROPÂë¡¡shl¡¡8£©&¡¡0ff000000h£©or¡¡Ç°¾°ROPÂë

Áé»îʹÓÃÕâ¸öº¯Êý¿ÉÒÔ´øÀ´ºÜ¶àµÄ·½±ã£¬±ÈÈçÔÚ_CreateBackGround×Ó³ÌÐòÖУ¬ÒÔ¡°£»¡±Îª×¢ÊÍÖ®¼äµÄ8¾ä´úÂëÍêÈ«¿ÉÒԸijÉÏÂÃæµÄ4¾ä£º

¡¡¡¡¡¡¡¡invoke¡¡¡¡CreatePatternBrush£»@hBmpBack

¡¡¡¡¡¡¡¡invoke¡¡¡¡SelectObject£»hDcBack£»eax

¡¡¡¡¡¡¡¡invoke¡¡¡¡DeleteObject£»eax

¡¡¡¡¡¡¡¡invoke¡¡¡¡MaskBlt£»hDcBack£»0£»0£»CLOCK_SIZE£»CLOCK_SIZE£»

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡@hDcCircle£»0£»0£»@hBmpMask£»0£»0£»

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡£¨£¨SRCCOPY¡¡shl¡¡8£©¡¡and¡¡0ff000000h£©¡¡or¡¡PATCOPY

Ïà±ÈÖ®ÏÂÉÙÁËÒ»¸öPatBltºÍÒ»¸öBitBltµ÷Óá£ÒòΪ³ÌÐòµÄÒªÇóÊÇÕÚÑÚͼƬÖкÚÉ«µÄ²¿·ÖʹÓñ߿òͼƬ£¬¶ø°×É«²¿·ÖʹÓñ³¾°£¬ËùÒÔ½«±³¾°ROPÉèÖÃΪSRCCOPY¾Í¿ÉÒÔ½«ÐèÒªµÄ±ß¿ò²¿·Ö¸´ÖƹýÈ¥£¬¶øÇ°¾°ROPʹÓÃPATCOPY¾ÍÃâ³ýÁËʹÓÃPatBltÌî³ä±³¾°µÄ²½Öè¡£µ±È»£¬Ê¹ÓÃÇ°ÐèÒª°ÑMask1¡£bmpºÍMask2¡£bmpÖØб£´æ³ÉºÚ°×É«£¬ÒòΪÏÖÔÚÕâÁ½¸öλͼÎļþÊÇ256É«¸ñʽµÄ¡£

Èç¹ûhMaskBmp²»Ö¸¶¨£¨²ÎÊýдΪNULL£©£¬ÄÇôMasmBltº¯Êý¾ÍÏ൱ÓÚBitBltº¯Êý£¬Ö»²»¹ýROPÊÇʹÓÃdwROPÖÐÖ¸¶¨µÄÇ°¾°ROPÂë¡£

¡¡

4¡£¡¡PlgBltº¯Êý

PlgBltʵÏÖƽÐÐËıßÐÎÐýת´«ËͲÙ×÷£¨Parallelogram¡¡Block¡¡Transfer£©£¬Ëü¸´ÖÆÒ»·ùλͼ£¬Í¬Ê±½«Æäת»»³ÉÒ»¸öƽÐÐËıßÐΣ¬ËùÒÔÀûÓÃËü¿É¶Ôλͼ½øÐÐÐýת´¦Àí¡£PlgBltº¯ÊýµÄʹÓÃÓï·¨ÊÇ£º

invoke¡¡¡¡PlgBlt£¬hdcDest£¬lpPoint£¬

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡hdcSrc£¬xSrc£¬ySrc£¬dwWidth£¬dwHeight£¬

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡hBmpMask£¬xMask£¬yMask

Õâ¸öº¯ÊýºÍROPÂëÎ޹أ¬µ«ËüͬÑùÖ¸¶¨ÁËÒ»¸öµ¥É«µÄÕÚÑÚλͼ£¬ÕÚÑÚλͼÖÐΪ1µÄÏñËضÔÓ¦µÄλÖûᱻ´«ËÍ£¬Îª0µÄÏñËز»±»´«ËÍ¡££¨xSrc£¬ySrc£©Ö¸¶¨ÁËÔ´DCÖÐÐèÒª´«Ë͵ľØÐεÄ×óÉϽǣ¬dwWidthºÍdwHeightÖ¸¶¨¿í¶ÈºÍ¸ß¶È£¬Õâ¸ö¾ØÐν«±»Ðýתºó´«Ë͵½Ä¿µÄDCÖÐÈ¥£¬ÐýתºóµÄƽÐÐËıßÐÎλÖÃÓÉlpPointÖ¸¶¨µÄPOINT½á¹¹ÕóÁÐÖ¸³ö¡£

lpPointÊÇÒ»¸öÖ¸Õ룬ָÏòº¬ÓÐ3¸öPOINT½á¹¹µÄÄÚ´æÖУ¨ÕâÖÖʹÓÃPOINT½á¹¹Êý×éµÄ·½·¨ÔÚPolyLineÖÐÒѾ­Ê¹Óùý£©£¬ÆäÖеÚÒ»¸öµã¶ÔÓ¦ÓÚÒ»¸öƽÐÐËıßÐεÄ×óÉϽÇλÖ㬵ڶþ¸öµã´ú±íÓÒÉϽÇλÖ㬵ÚÈý¸öµã´ú±íÓÒϽǵÄλÖ㬲»ÐèÒªµÚËĸöµãÊÇÒòΪËü¿ÉÒÔ´ÓÉÏÃæ3¸öµãµÄ×ø±êÍƵ¼³öÀ´¡£

5¡£¡¡StretchBltº¯Êý

StretchBltº¯ÊýʵÏÖÏñËصÄËõ·Å¹¦ÄÜ£¬ËüµÄÓï·¨ÊÇ£º

invoke¡¡¡¡¡¡¡¡¡¡¡¡StretchBlt£»hDcDest£»xDest£»yDest£»dwWidthDest£»dwHeightDest£»

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡hDcSrc£»xSrc£»ySrc£»dwWidthSrc£»dwHeightSrc£»dwROP¡¡

Õâ¸öº¯Êý½«Ô´hDcSrcÖÐÒÔ£¨xSrc£¬ySrc£©Îª×óÉϽǣ¬dwWidthSrcºÍdwHeightSrcΪ¿í¶ÈºÍ¸ß¶ÈµÄ¾ØÐÎÒÔdwROPÖ¸¶¨µÄ·½Ê½´«Ë͵½Ä¿±êhDcDestÖÐÈ¥£¬Ä¿±êλÖÃÊÇ£¨xDest£¬yDest£©£¬ÐµľØÐÎÇøÓò´óСΪdwWidthDestºÍdwHeight£¬Èç¹ûÔ´DCÖеľØÐδóСºÍÄ¿±êDCÖеIJ»Ò»Ñù£¬º¯Êý»á½«ÏñËØÊý¾Ý×Ô¶¯Ëõ·Å¡£

µ«ÊÇStretchBlt¶ÔÏñËصÄËõ·Å°ì·¨½ö½öÊÇɾ³ý¶àÓàµÄÏñËØ£¨´Ó´óµ½Ð¡£©»òÕßÖظ´ÏñËØ£¨´ÓСµ½´ó£©£¬²¢²»ÏñһЩͼÐδ¦ÀíÈí¼þÒ»Ñù½øÐвåÖµ¼ÆË㣬ËùÒÔËõ·ÅµÄЧ¹û²¢²»ºÃ£¬±ÊÕß½¨ÒéÈç¹ûÄܹ»²»ÓÃÕâ¸öº¯Êý¾Í²»ÒªÈ¥ÓÃËü£¬³ý·Ç¶ÔͼÐεÄÖÊÁ¿²¢Ã»ÓÐÒªÇó¡£

6¡£¡¡TransparentBltº¯Êý

»¹ÓÐÒ»¸öº¯Êý¿ÉÒÔ·½±ãµØʵÏÖ²»¹æÔòÇøÓòµÄÏñËØ¿½±´²Ù×÷£¬ÄǾÍÊÇTransparentBltº¯Êý£¬ËüµÄÓ÷¨ÈçÏ£º

invoke¡¡¡¡TransparentBlt£»hDcDest£»xDest£»yDest£»dwWidthDest£»dwHeightDest£»

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡hDcSrc£»xSrc£»ySrc£»dwWidthSrc£»dwHeightSrc£»crTransparent

¿ÉÒÔ¿´³ö£¬ËüºÍStretchBltº¯ÊýµÄ²
·µ»ØĿ¼ ÉÏÒ»Ò³ ÏÂÒ»Ò³ »Øµ½¶¥²¿ ÔÞ£¨0£© ²È£¨0£©
δÔĶÁÍꣿ¼ÓÈëÊéÇ©ÒѱãÏ´μÌÐøÔĶÁ£¡
ÎÂÜ°Ìáʾ£º ο´Ð¡ËµµÄͬʱ·¢±íÆÀÂÛ£¬Ëµ³ö×Ô¼ºµÄ¿´·¨ºÍÆäËüС»ï°éÃÇ·ÖÏíÒ²²»´íŶ£¡·¢±íÊéÆÀ»¹¿ÉÒÔ»ñµÃ»ý·ÖºÍ¾­Ñé½±Àø£¬ÈÏÕæдԭ´´ÊéÆÀ ±»²ÉÄÉΪ¾«ÆÀ¿ÉÒÔ»ñµÃ´óÁ¿½ð±Ò¡¢»ý·ÖºÍ¾­Ñé½±ÀøŶ£¡