¾ÛÅøÁî
46.¢½.168.138
46.¢½.168.129
46.¢½.168.161
46.¢½.168.136
46.¢½.168.145
46.¢½.168.162
46.¢½.168.144
46.¢½.168.140
115.¢½.135.198
46.¢½.168.139
 
°Ô½Ã¹° 88°Ç
   
ZXing ¹ÙÄÚµå ½ºÄµºÎºÐ Å©±â Á¶ÀýÇϱâ.
±Û¾´ÀÌ : ±èº´ÁÖ                   ³¯Â¥ : 2012-08-06 (¿ù) 01:32 Á¶È¸ : 14914
¹ÙÄÚµå ½ºÄ³³Ê API·Î ZxingÀ» ¸¹ÀÌµé »ç¿ëÇϽǰſ¡¿ä.
 
°¡·Î¸ðµå°¡ ±âÁØÀε¥´Ù°¡ °¡·Î ¼¼·Î Å©±â¸¦ ±âÁØÀ¸·Î ¸®»çÀÌ¡ ÇÏ°í,
 
ImageView¸¦ ÄÁÆ®·Ñ Çϴ°Ծƴ϶ó.
 
surfaceView¿¡´Ù°¡ Åõ¸í ·¹À̾ƿôÀ» drawRect¶ó´Â°ÍÀ» 4°³±×·Á
 
Áߺ¹µÇÁö ¾Ê´Â ºÎºÐÀ» ĸóÇÏ´Â ¹æ½ÄÀ¸·Î µÇ¾î ÀÖ¾î¿ä.
 
±×·¡¼­ À̺κÐÀ» ¼öÁ¤ÇÏ·Á¸é
 
ÃÑ 8°÷À» ¼öÁ¤ÇØ¾ß µÇÁÒ.
 
¼öÁ¤À» ÇÒ°÷Àº ViewfinderView.java¶ó´Â ÆÄÀÏÀÌ ÀÖ´Â ºÎºÐÀε¥
 
¿©±â¼­.
 ///com\google\zxing\client\android\ViewfinderView.java ÀÔ´Ï´Ù.
91.
 // Draw the exterior (i.e. outside the framing rect) darkened
    paint.setColor(resultBitmap != null ? resultColor : maskColor);    
    canvas.drawRect(0, 0, width, frame.top, paint);  //°¡·Î À­¼±
   canvas.drawRect(0, frame.top, frame.left, frame.bottom + 1, paint); //¼¼·Î ¿ÞÂʼ±    canvas.drawRect(frame.right + 1, frame.top, width, frame.bottom + 1, paint); //¼¼·Î ¿À¸¥Âʼ±    canvas.drawRect(0, frame.bottom + 1, width, height, paint); //°¡·Î ¾Æ·§¼±
 
À̺κÐÀº È­¸é Àüü µÞ¹è°æ¿¡ ¸¶½ºÅ©¸¦ ¾º¿ì´Â ÀÛ¾÷ÀÌ¿¡¿ä.
=============
====        === ÀÌ·¸°Ô °ËÀº»öÀ¸·Î Ä¥ÇØÁø ºÎºÐÀ» ó¸®ÇÏ´Â °ÅÁÒ.
=============
 
canvas.drawRect(0, 0, width, frame.top, paint);
 --->> À̺κÐÀº  0,0 < È­¸éÀÇ °¡Àå ÃÖ»óÀ§ÀÇ ¿ÞÂʺκÐÀ» ½ÃÀÛÀ¸·Î ±âÁØÁ¡À» Àâ°í
                        width < È­¸éÀÇ ÃÖ´ë °¡·Î ±æÀÌ ÀÔ´Ï´Ù.
                        frame.top <- À̺κÐÀº »ç°¢ÇüÀÇ YÁÂÇ¥Àε¥. º¸Åë È­¸é ÃÖ´ë YÁÂÇ¥¿¡¼­ 50~60dp
                                          Á¤µµ¿¡ À§Ä¡ÇØ ÀÖ½À´Ï´Ù.
   À̺κÐÀº ¾Æ±î À§ÀÇ ================== À̺κÐÀ» ä»öÇϴ°̴ϴÙ.
   ±×¸®°í ¾Æ·¡ ºÎºÐÀº canvas.drawRect(0, frame.top, frame.left, frame.bottom + 1, paint);
                              .left .bottom ÀÌ·¸°Ô µÇ¾î Àִµ¥
                               left´Â È­¸é±âÁØÀ¸·Î ¼¼·ÎÀÇ ±æÀ̸¦ ¹Þ¾Æ¿É´Ï´Ù.(Top°ú ¸¶Âù°¡Áö·Î ÃÖ´ëÄ¡¿¡¼­
                               50~60dp Á¤µµ ÀÇ À§Ä¡¸¦ ±âÁØÀ¸·Î Àâ½À´Ï´Ù.)
                           bottomÀº yÁÂÇ¥¿¡¼­ ÇÏ´ÜÀ» °¡¸®Å°¸ç, ÀÌ ÁÂÇ¥ ¿ª½Ã °¡Àå ÇÏ´Ü¿¡¼­ ÀÏÁ¤¼öÄ¡
                            ¶³¾îÁ®ÀÕ½À´Ï´Ù.
              
¿¹¸¦µé¾î ³ª´Â ½ºÄµµÇ´Â ºÎºÐÀ» °¡·Î¸ðµå ±âÁØÀ¸·Î ¹ÝÀ¸·Î ÁÙÀÌ°í ½Í´Ù.(°¡·Î±æÀ̸¦)
¼¼·Î ¿ÞÂÊ/¿À¸¥Âʼ±ÀÇ À§Ä¡¸¦ ¾ÈÂÊÀ¸·Î ¶¯±â¸é µÇ°ÚÁÒ?
frame.left, frame.right°¡ xÁÂÇ¥°¡ µÇ¹Ç·Î À̺κÐÀ» °¢°¢ /2·Î ÁÙÀÌ°í ¿©±â¿¡ ´Ã¸®°í ½ÍÀº ¸¸Å­ÀÇ
Çȼ¿Ä¡¸¦ Ãß°¡ÇÕ´Ï´Ù. /2°¡ µÇ¸é ¸¶½ºÅ© Å©±â¿¡¼­ ¹ÝÁ¤µµ ÁÙ¾îµå´Âµ¥, ÀÌ°Ô ³Ê¹« ÀÛ´Ù°í ´À²¸Áö¸é
+ Çȼ¿ °ªÀ» ÇØÁֽøéµË´Ï´Ù.
¿ÞÂÊÀº -°ª ¿À¸¥ÂÊÀº +°ªÀÔ´Ï´Ù.
¹Ý´ë·Î ¼¼·Î Å©±â¸¦ ¼öÁ¤ÇÏ·Á¸é ¿ª½Ã top°ú bottomÀ» ¼öÁ¤ÇϽøéµÇ°í
¿©±â¿¡µµ À§ÂÊ°ªÀº -, ¾Æ·¡ÂÊ°ªÀº +°¡ µË´Ï´Ù.
 
103.
 // Draw a two pixel solid black border inside the framing rect
      paint.setColor(frameColor);
      canvas.drawRect(frame.left, frame.top, frame.right + 1, frame.top + 2, paint);
      canvas.drawRect(frame.left, frame.top + 2, frame.left + 2, frame.bottom - 1, paint);
      canvas.drawRect(frame.right - 1, frame.top, frame.right + 1, frame.bottom - 1, paint);
      canvas.drawRect(frame.left, frame.bottom - 1, frame.right + 1, frame.bottom + 1, paint);
À̺κÐÀº ¾ÈÂÊÀÇ ½ºÄµµÇ´Â ¿µ¿ªÀ» ¼³Á¤Çϴ°ǵ¥.
zxingÀÇ ½ºÄ³³Ê¸¦ Àߺ¸½Ã¸é ½ºÄµµÇ´Â¿µ¿ª ¹Ù±ùÂÊ¿¡ ¾ãÀº °ËÀº»ö ¼±ÀÌ ÀÖ½À´Ï´Ù.
±× ¼±µéÀÌ ¹Ù·Î À§ÀÇ °ªµéÀÌÁÒ. ¼±Ã³·³ º¸ÀÌÁö¸¸ »ç½Ç »ç°¢ÇüÀ» ÀÌ¾î ºÙÈù °ÅÁÒ.
°¢°¢ÀÇ ¼±µéÀº À§ÀÇ ¸¶½ºÅ©µéÀÇ °ªµé°ú °°°í.°ªµéµµ ¿ª½Ã °°½À´Ï´Ù.
ÁÖÀÇÇÒÁ¡Àº ¼±ÀÇ ±½±âÀε¥ Å©±â Á¶ÀýÀ» À§ÇØ +ÇÑ´Ù°í ÇϼÌÀ» ¶§ ÀÌ°ªµéÀÌ °æ°è°¡ µÇ´Â Á¡µé¿¡¼­
+1~+2Á¤µµ Â÷À̳ª°Ô ÇØÁּžߵ˴ϴÙ. ±×·¸Áö ¾ÊÀ¸¸é »ó´çÈ÷ ±½Àº ¼±ÀÌ »ý±â¸é¼­
±×ºÎºÐÀ» ½ºÄËÇÏÁö ¾Ê°Ô µË´Ï´Ù.
 
110.
    // Draw a red "laser scanner" line through the middle to show decoding is active
      paint.setColor(laserColor);
      paint.setAlpha(SCANNER_ALPHA[scannerAlpha]);
      scannerAlpha = (scannerAlpha + 1) % SCANNER_ALPHA.length;
      int middle = frame.height() / 2 + frame.top;
      canvas.drawRect(frame.left + 2, middle - 1, frame.right - 1, middle + 2, paint);
À̺κÐÀº ·¹ÀÌÁ®¼±... À» Ç¥ÇöÇÏ´Â ºÎºÐÀε¥ Àú´Â ÇÊ¿ä°¡ ¾ø´Â°Å °°¾Æ¼­ »©µÎ±äÇß½À´Ï´Ù.
À̺κÐÀº È­¸éÀ» ±âÁØÀ¸·Î Áß¾Ó°ªÀ» Àâ°í ±× Áß¾Ó°ª¿¡ ¹Ý¦ÀÌ´Â ¿¡´Ï¸ÞÀ̼ÇÀÌ µé¾î°¡´Â
»ç°¢ÇüÀ» ³Ö½À´Ï´Ù. ----------------------ÀÌ·±Á¤µµÀÇ ±½±âÀÇ..  
±æÀ̺¯°æÀº À§¿Í °°½À´Ï´Ù.
 
 
º¯°æÀ» ÇÏ´Â°Ç ¿©±â±îÁöÀÌ°í ·¹À̾ƿôÀº ÀÌ Å¬·¹½º¸¦ draw ·Î ¹Þ¾Æ¿À±â ¶§¹®¿¡ µû·Î ¼öÁ¤ÇÒ°Ç
¾ø½À´Ï´Ù.
 
±×·³ ÁñÄÚµù µÇ½Ã±æ.   
* ±ÛÀ» µî·ÏÇϽǶ§ ²À ÇÊ¿äÇÑ °æ¿ì°¡ ¾Æ´Ï¸é °³ÀÎÁ¤º¸¸¦ ³²±âÁö ¸¶¼¼¿ä ^^ (¿¬¶ôó,À̸ÞÀÏÁÖ¼Ò,Áֹεî·Ï¹øÈ£ µî)




±èº´ÁÖ ´ÔÀÇ Tip&Tech ÃÖ½Å±Û [´õº¸±â]


   

°Ô½Ã¹° 88°Ç
¹øÈ£ Á¦¸ñ ±Û¾´ÀÌ ³¯Â¥ Á¶È¸
88  <Ŭ¶ó¿ìµåÇõ½Å¼¾ÅÍ> 12¿ù 1ÀÏ SW ½ºÅ¸Æ®¾÷ â¾÷ ¼º°ø Àü·« ¼¼¹Ì³ª Âü¼® ¿äû Áظð 11-30 4084
87  <Ŭ¶ó¿ìµåÇõ½Å¼¾ÅÍ> 12¿ù 1ÀÏ SW ½ºÅ¸Æ®¾÷ â¾÷ ¼º°ø Àü·« ¼¼¹Ì³ª Áظð 11-23 3940
86  °³Àΰ³¹ßÀÚ SW°³¹ßȯ°æ Áö¿ø»ç¾÷ ¾È³» Áظð 10-28 4231
85  ¸Æ¿¡¼­ ±¸±Û API key µî·Ï¹æ¹ý ¼º±âµ¿ 08-29 4597
84  [Agate Mobile] ¾Û ¼³Ä¡ ¾øÀÌ ¼­¹ö·ÎºÎÅÍ ½Ç½Ã°£ ·Îµù µÇ¾î µ¿ÀÛÇÏ´Â Cloud Native App ÇÁ·¹ÀÓ¿öÅ©ÀÔ´Ï´Ù. ¾¾Æ®¸°°³¹ß¡¦ 07-21 7871
83     [Agate Mobile] ¾Û ¼³Ä¡ ¾øÀÌ ¼­¹ö·ÎºÎÅÍ ½Ç½Ã°£ ·Îµù µÇ¾î µ¿ÀÛÇÏ´Â Cloud Native App ÇÁ·¹ÀÓ¿öÅ©ÀÔ´Ï´Ù. ±èÀºÈ£ 08-21 12266
82  ÀÚ¹Ù Ãʺ¸µé¿¡°Ô ÃßõÇÏ´Â ±âÃÊ °³³äÀ» ÀâÀ» ¼ö Àִ åµé ÀÌ°æ¿ë 06-19 5932
81  [ÆÁ] °¶·°½Ã ³ëÆ®3 °³¹ßÀÚ ¿É¼Ç ¸Þ´º ã±â ^^ ÀÌ°æ¿ë 11-09 9872
80  ¾ÛÅÛÇø´À» Á¦°øÇÏ´Â »çÀÌÆ® ¼Ò°³ÇÕ´Ï´Ù. ¾¾Æ®¸°°³¹ß¡¦ 08-21 12443
79  The content of the adapter has changed but ListView ... ¿¡·¯ ÀϹÝÀû ÇØ°á¹ý. ±èº´ÁÖ 04-16 15602
78  °£´ÜÇÏ°Ô Æнº¿öµå¿¡ ¼ýÀÚ°¡ È¥¿ëµÇ¾ú´ÂÁö ó¸®ÇÒ ¼ö ÀÖ´Â ¸Þ¼ÒµåÀÔ´Ï´Ù. ±èº´ÁÖ 01-31 6658
77  handler¸¦ ÀÌ¿ëÇØ °¡º¯½Ã°£ ¹Ýº¹ ÀÛ¾÷Çϱâ. ±èº´ÁÖ 11-26 8606
76  String -> HEX ±èº´ÁÖ 11-12 6009
75  ¸®½ºÆ® ÀÛ¾÷½Ã¿¡ ±âº»ÀûÀ¸·Î ¾Ë¾ÆµÎ¼Å¾ß µÉÁ¡. +1 ±èº´ÁÖ 10-08 7080
74  xml Á÷·Äó¸® °í¹ü¼® 09-24 4534
73  ÁÖ¼Ò·Ï Ãß°¡/»èÁ¦ °¨ÁöÇؼ­ ¾ÛÀÇ dbÃß°¡/»èÁ¦Çϱâ. ±èº´ÁÖ 09-24 12678
72  È®À帮½ºÆ®°¡ 3µª½º ÀÌ»óÀÌ µÉ±î? ¾ÈµÉ±î? +1 ±èº´ÁÖ 08-21 10355
71  ZXing ¹ÙÄÚµå ½ºÄµºÎºÐ Å©±â Á¶ÀýÇϱâ. ±èº´ÁÖ 08-06 14915
70  ÀÌŬ¸³½º¿¡¼­ ·¹À̾ƿô xml ±×·¡ÇȺκÐÀÌ °©Àڱ⠾Ⱥ¸ÀÏ°æ¿ì. +1 ±èº´ÁÖ 07-27 6647
69  °£¸¸¿¡ ±Û¾²³×¿ä À̹ø¿£ launcherShortCut (¹Ù·Î°¡±â ¾ÆÀÌÄÜ)ÀÔ´Ï´Ù. ±èº´ÁÖ 07-25 12237
 1  2  3  4  5  
 
 
 
Copyright ¨Ï wwwold.androidstudy.co.kr. All rights reserved.