æ§æ url = canvas . toDataURL( [ type, ... ]) canvas ã®ã¤ã¡ã¼ã¸ã«å¯¾ãã data: URL ãè¿ãã¾ãã 第 1 å¼æ°ãæå®ããã¨ãããã¯ãè¿ãããã¤ã¡ã¼ã¸ã®ã¿ã¤ã (ä¾ãã°ãPNG ã JPEG) ãå¶å¾¡ãã¾ããããã©ã«ã㯠image/png ã§ãããã®ã¿ã¤ãã¯ãæå®ã®ã¿ã¤ãããµãã¼ãããã¦ããªãå ´åãé©ç¨ããã¾ããæ®ãã®å¼æ°ã¯ã¿ã¤ãåºæã®ãã®ã¨ãªããä¸è¡¨ã®éããã¤ã¡ã¼ã¸ãçæãããæ¹æ³ãå¶å¾¡ãããã¨ã«ãªãã¾ãã ä»æ§ toDataURL() ã¡ã½ããã¯ãå¼æ°ããªãå ´åã¯ãPNG ãã¡ã¤ã«ã¨ãã¦ã®ç»å表ç¾ãå«ãã data: URI ãè¿ããªããã°ããã¾ããã[PNG] canvas ã«ãã¯ã»ã«ããªããã°ï¼ã¤ã¾ããå¹ ãé«ãã 0 ãªãï¼ããã®ã¡ã½ããã¯æåå "data:," ãè¿ããªããã°ããã¾ãããï¼ããã¯ãæçã® data: UR
{{#tags}}- {{label}}
{{/tags}}