- From: ±è¿µº¸ <tonextday@gmail.com>
- Date: Wed, 17 Nov 2010 16:50:25 +0900
- To: ÀÌ¿ø¼® <wslee@etri.re.kr>
- Cc: Sangwhan Moon <smoon@opera.com>, public-html-ig-ko@w3.org
- Message-ID: <AANLkTi=+dyew0tqV5qoU=wt4tzpDvqUBVp+-iCeumRxZ@mail.gmail.com>
±è¿µº¸ÀÔ´Ï´Ù. Àú´Â ´ÙÀ½°ú °°ÀÌ »ý°¢ÇÕ´Ï´Ù. <canvas>´Â <svg>¿Í ´Þ¸® ¿¤¸®¸ÕÆ®°¡ ÇϳªÀÔ´Ï´Ù. Áï, ¸ðµç °ÍÀÌ ÀÌ ¾È¿¡ ÀÖ´Ù´Â °ÍÀÔ´Ï´Ù. <canvas> Å©±â°¡ 100*200ÀÌ¸é¼ ¹é±×¶ó¿îµå »öÀÌ ÆĶõ»öÀ¸·Î µÇ¾î ÀÖ´Ù°í ÇÒ ¶§ Å©±â¸¦ 300*300À¸·Î ´Ã¸®¸é ´Ã·ÁÁø ¿µ¿ª¿¡ ¹é±×¶ó¿îµå »öÀ» ÆĶõ»öÀ¸·Î Ä¥ÇØ¾ß ÇÒ±î¿ä? ¾Æ´Ò±î¿ä? ¿¤¸®¸ÕÆ®°¡ Çϳª¶ó¸é Ä¥ÇØÁö´Â °ÍÀÌ ´ç¿¬ÇÏ´Ù°í »ý°¢ÇÕ´Ï´Ù¸¸, ĵ¹ö½º´Â ¿¤¸®¸ÕÆ®°¡ ÇϳªÀ̱⠶§¹®¿¡ ´Ã·ÁÁø ¿µ¿ªÀ» ´Ù¸¥ ¿µ¿ªÀ̶ó´Â °³³äÀ¸·Î º¼ ¼öµµ ÀÖ½À´Ï´Ù. <svg>·Î »ý°¢ÇÏ¸é ¿¤¸®¸ÕÆ®°¡ Ãß°¡µÈ °³³äÀ¸·Î »ý°¢ÇÒ ¼öµµ ÀÖ½À´Ï´Ù. ÇÑÆí <canvas>°¡ context °³³äÀ¸·Î À̹ÌÁö¸¦ Ç¥ÇöÇÑ´Ù´Â Á¡¿¡ ´ëÇÑ ¿¬±¸µµ ÇÊ¿äÇÑ °Í °°½À´Ï´Ù. ¶ÇÇÑ, Çö ½ÃÁ¡¿¡¼ ÀÌ ¸ÞÄ¿´ÏÁòÀ» º¯°æÇϸé Áö±Ý±îÁö °³¹ßµÈ °ÍÀÌ ¹®Á¦°¡ µÈ´Ù°í »ý°¢ÇÕ´Ï´Ù. ¼Ó¼º °ªÀÇ ÇüÅÂ, ¼³Á¤ ¹æ¹ýÀ» ¹Ù²Ù´Â ±â´É ·¹º§ÀÌ ¾Æ´Ñ ¸ÞÄ¿´ÏÁò ·¹º§À̱⠶§¹®ÀÔ´Ï´Ù. ½Ã°£À» °®°í º¸´Ù ¸¹Àº ¿¬±¸¸¦ Çؼ ÀÇ°ßÀ» Á¦½ÃÇØ¾ß Çϴµ¥, ¹®¶à »ý°¢ÀÌ ³ª¼ Àû¾î º¸¾Ò½À´Ï´Ù. »ý°¢À» ´Þ¸®ÇÏ´Â ºÎºÐÀÌ ÀÖÀ¸¸é ÀÌÇظ¦ ¹Ù¶ø´Ï´Ù. 2010³â 11¿ù 17ÀÏ ¿ÀÈÄ 4:40, ÀÌ¿ø¼® <wslee@etri.re.kr>´ÔÀÇ ¸»: > ¾È³çÇϼ¼¿ä. ¹®»óȯ´Ô. > ´äº¯ °¨»çÇÕ´Ï´Ù~ > > °á°úÀûÀ¸·Î canvas Å©±â ¼³Á¤¿¡ µû¶ó drawing buffer Å©±â°¡ °áÁ¤µÇ±â ¶§¹®À̶ó´Â °ÍÀΰ¡¿ä?? > > ¼ö°íÇϼ¼¿ä~ > > ÀÌ¿ø¼® µå¸². > > > -----Original Message----- > > From: public-html-ig-ko-request@w3.org [mailto:public-html-ig-ko- > > request@w3.org] On Behalf Of Sangwhan Moon > > Sent: Wednesday, November 17, 2010 4:09 PM > > To: public-html-ig-ko@w3.org > > Subject: Re: CANVAS ű׿¡ ´ëÇÑ Áú¹®À» ½ÃÀÛÀ¸·Î HTML5 KIG È°µ¿À» ½ÃÀÛÇغ¾´Ï´Ù. ^^ > > > > > > ¾È³çÇϼ¼¿ä, ¿ÀÆä¶ó ¼ÒÇÁÆ®¿þ¾î ¹®»óȯÀÔ´Ï´Ù. > > > > HTML5 Working Draft 4.8.11 ÀýÀÇ Çϱâ Ç×: > > > > // Àοë > > > > When the canvas element is created, and subsequently ***whenever the > width > > and height attributes are set (whether to a new value or to the previous > > value), the bitmap and any associated contexts must be cleared back to > > their initial state and reinitialized with the newly specified coordinate > > space dimensions.*** > > > > When the canvas is initialized, its bitmap must be cleared to transparent > > black. > > > > // ÀÎ¿ë ³¡ > > > > ¿¡ ¸í½ÃµÇ¾î ÀÖ½À´Ï´Ù. > > > > ±¸ÇöÀÇ ¹é±×¶ó¿îµå´Â ½ºÆåÀÌ Á¸ÀçÇϱâ ÀÌÀü¿¡ ¾Æ·¡ Å×½ºÆ® ÄÉÀ̽º Áß 17, 18, 19¹ø ·ÎºÎÅÍ ½ÃÀÛ > > µÇ¾ú½À´Ï´Ù. > > > > http://hixie.ch/tests/adhoc/html/canvas/ > > > > º¸½Ã¸é ¾Æ½Ã°ÚÁö¸¸ 4³âÀÌ ³ÑÀº test µéÀÔ´Ï´Ù. »ç°ßÀÌÁö¸¸, HTML5 ¿¡µðÅÍ¿Í µ¿ÀÏÀÎÀÌ ÀÛ¼ºÇÑ > > Å×½ºÆ®À̱⠶§¹®¿¡ ±×¿¡ ´ëÇÑ °ßÇØ°¡ ¿¬ÀåµÇ¾ú´Ù°í »ý°¢µË´Ï´Ù. > > > > ÀÌ ºÎºÐ¿¡ ´ëÇؼ WebGL¿¡¼ backbuffer°¡ ¾Æ´Ñ Àüü contextÀÇ ÃʱâÈ°¡ ÀϾ´Â°ÍÀ¸·Î ÇØ > > ¼®µÇ¾î¼ Àá½Ã ³í¶õÀÌ ÀÖ¾úÀ¸³ª, Çϱâ¿Í °°ÀÌ Á¤¸®°¡ µÇ¾ú½À´Ï´Ù. > > > > The drawing buffer into which the API calls are rendered shall be defined > > upon creation of the WebGLRenderingContext object. ***The size of this > > drawing buffer shall be determined by the width and height attributes of > > the HTMLCanvasElement. Changing either of these attributes shall cause > the > > drawing buffer to resize and its contents to be cleared to (0,0,0,0).*** > > > > ´äº¯ÀÌ µÇ¾úÀ¸¸é ÁÁ°Ú½À´Ï´Ù. > > > > °¨»çÇÕ´Ï´Ù. > > ¹®»óȯ ¹è»ó > > > > > > 2010/11/17, 10:37 AM, Min Tae Kim ÀÛ¼º: > > > > > ¾È³çÇϼ¼¿ä. > > > > > > À̹ÌÁöŬ¸¯ ±è¹ÎÅÂÀÔ´Ï´Ù. > > > > > > > > > Canvas·Î °³¹ßÀ» ÇÏ´Ù°¡ ¹®µæ Àǹ®ÀÌ »ý°Ü¼ ÀÌ·¸°Ô Áú¹®µå·Áº¾´Ï´Ù. > > > > > > [Áú¹®] > > > > > > Canvas ű״ width ¶Ç´Â height °¡ ¼³Á¤µÇ¸é (°ªÀÇ º¯°æ À¯¹«¿Í »ó°ü¾øÀÌ) canvas ÀÚü > > °¡ ¸®¼ÂµË´Ï´Ù. > > > Áï ±×·ÁÁø À̹ÌÁö°¡ ¸ðµÎ Áö¿öÁö°í °¢Á¾ styleµµ ¸®¼ÂµË´Ï´Ù. > > > ¸í½ÃÀûÀÎ API ·Î reset À» ±¸ÇöÇÏÁö ¾Ê°í ÀÌ·¸°Ô ÇÏ´Â ÀÌÀ¯´Â ¹«¾ùÀϱî¿ä? > > > > > > > > > [¹è°æ] > > > > > > HTML5¿¡¼ »õ·Î Ãß°¡µÈ ű×ÀÎ Canvas ´Â ¸¹Àº API ¸¦ ÇÔ²² Á¦°øÇÏ°í ÀÖ½À´Ï´Ù. > > > 2D ÀÛ¾÷À» ÇϱâÀ§Çؼ ³ª¸§ ÃæºÐÇÑ API ¸¦ Á¦°øÇÏ°í Àִµ¥¿ä À¯µ¶ ÀÌÇØÇϱâ Èûµç > > > ÇüŸ¦ Çϳª ¹ß°ßÇß½À´Ï´Ù. > > > > > > Canvas ÀÚüÀÇ width ¶Ç´Â height °¡ ¼³Á¤µÇ¸é Canvas°¡ Reset µÇ´Â ¹æ½ÄÀÌ ±×°ÍÀÔ´Ï´Ù. > > > ¿©±â¼ ÇÙ½ÉÀº ½ÇÁ¦·Î Canvas ÀÇ width³ª height °¡ º¯ÇÏÁö ¾Ê¾Æµµ ´ÜÁö °°Àº Å©±â·Î > > > ¼³Á¤¸¸ µÈ´ÙÇصµ Reset µÇ´Â ¹æ½ÄÀ̶ó´Â °ÍÀÌÁÒ. > > > > > > Canvas.reset() °°Àº API ¸¦ Á¦°øÇØÁÖ¸é ´õ ¸í½ÃÀûÀÌ°í ÁÁÀ» °Í °°Àºµ¥ °³¹ß Äڵ嵵 Á» > > > ½ß¶×¸Â¾ÆÁö°í º°·Î ÈǸ¢ÇÑ ÄÁ¼ÁÀÎ °Í °°Áö´Â ¾Ê¾Æ¼ ¸»ÀÌÁÒ. Ȥ½Ã ¿Ö ÀÌ·± ¸ÞÄ¿´ÏÁòÀ» äÅà > > > Çß´ÂÁö ¾Æ½Ã´Â ºÐÀÌ ÀÖÀ¸½Ã¸é ÁÁ°Ú½À´Ï´Ù. > > > > > > ±×¸®°í ¹«¾ùº¸´Ù ´ÜÁö ¹æ½ÄÀÇ ¹®Á¦°¡ ¾Æ´Ñ canvas ÀÇ »çÀÌÁî°¡ º¯Çϸé reset ÀÌ µÇ±â ¶§¹®¿¡ > > > ¸¸¾à °íÁ¤Å©±â Canvas¸¦ »ç¿ëÇÏÁö ¾Ê´Â´Ù¸é ºê·¯¿ìÀúÀÇ Å©±â°¡ º¯Çϸé Ç×»ó ÇöÀç »óÅÂÀÇ > > > Canvas ¸¦ À¯ÁöÇϱâ À§Çؼ ´Ù½Ã±×·Á¾ßÇÏ´Â ºÎ´ã°¨ÀÌ ÀÖ½À´Ï´Ù. > > > > > > ±×·Á¾ßÇÏ´Â À̹ÌÁö°¡ º¹ÀâÇÒ °æ¿ì ÀÌ´Â ´õ¿í Å« ºÎ´ãÀÌ µÉ °Í °°½À´Ï´Ù. ¸¸¾à ÀÌ·¸°Ô reset > > > µÇÁö ¾Ê´Â´Ù¸é ¸®»çÀÌÁî·Î ÀÎÇؼ ºó °ø°£¸¸ ´Ù½Ã ±×¸®¸é µÉÅÙµ¥ ÇöÀçÀÇ canvas ±¸Á¶»ó > > > resize À̺¥Æ®¿¡ Àüü¸¦ ´Ù½Ã ±×¸®·Á¾ßÇÕ´Ï´Ù. > > > > > > > > > > > > > > > ¿ì¼± Àú´Â ÀÌ Áú¹®À¸·Î ½ÃÀÛÇغ¾´Ï´Ù.^^ > > > > > > ±è¹ÎÅ µå¸². > > > > > > > > > ps : ¸ÞÀÏ Çü½ÄÀº SK Telecom ±èµµ¿Ï´ÔÀÇ ¾ç½ÄÀ» È°¿ëÇغýÀ´Ï´Ù. ^^ > > > > > > > > > # Kim Min Tae > > > -------------------------------------- > > > Imageclick co.,Ltd > > > http:// www.imageclick.com > > > ibare77@gmail.com > > > http://www.ibare.kr > > > http://twitter/ibare > > > Mobile: 010.8555.3198 > > > > > > > -- > > Sangwhan Moon <smoon@opera.com>, Opera Software ASA > > Skype: innodb1 | Mobile: +372-5971-6147 > > > > >
Received on Wednesday, 17 November 2010 09:51:58 UTC