ä½ç½®èª¿æ´ãåºæ¥ãããä»åº¦ã¯æ¡å¤§ç¸®å°ã«ã¤ãã¦ã§ããããã«ã¤ãã¦ãããã¤ãã®æ¹æ³ãããã¾ãã drawImageã¡ã½ããã®å¼æ°ã§è²¼ãä»ããµã¤ãºãæå®ãã scaleã¡ã½ããã§canvasã®å¤å½¢ããã¦ãããdrawImageã§è²¼ãä»ãã transformã¡ã½ããã§canvasã®å¤å½¢ããã¦ãããdrawImageã§è²¼ãä»ãã 1ã«ã¤ãã¦ããä½ç½®èª¿æ´ã¨åæ§ãdrawImageã®å¼æ°ãå¤åãããã ãã§OKã§ãã2ã3ã¯ããããå¤å½¢ãããªãã¯ã¹ã®èª¿æ´ã«ãªãã¾ããã使ãã¡ã½ãããéãã¾ããåç´ã«æ¡å¤§ç¸®å°ããã ãã§ããã°2ã®æ¹ãç°¡åã§ãã drawImageã¡ã½ããã®å¼æ°ã§è²¼ãä»ããµã¤ãºãæå®ãã drawImage(image, dx, dy, dw, dh)ã¨ãdwãdhã®å¼æ°ãæå®ããã¨ãè²¼ãä»ãå ã®ãµã¤ãºãæå®ãããã¨ãã§ãã¾ããå ç»åã«å¯¾ãã¦ç¸¦æ¨ªæ¯ãç¶æãã¦æ¡å¤§ç¸®å°ããå ´åã¯ãdwãdhãããã
{{#tags}}- {{label}}
{{/tags}}