Imageã¯ã©ã¹ã使ãPILã«ããã¦æãéè¦ãªã¯ã©ã¹ã¯Imageã¯ã©ã¹ã§ããããã¯åãååã®ã¢ã¸ã¥ã¼ã«ã®ä¸ã§å®ç¾©ããã¦ãã¾ããããªãã¯ä¾ãã°ãã¡ã¤ã«ããç»åãèªã¿è¾¼ãã ããä»ã®ç»åãå¦çããããã¹ã¯ã©ããããç»åãçæããããããã¨ã«ãã£ã¦ãã®ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ãçæãããã¨ãã§ãã¾ãããã¡ã¤ã«ãç»åããèªã¿è¾¼ãããã«ã¯ãImageã¢ã¸ã¥ã¼ã«ã®opené¢æ°ã使ãã¾ãã>>> import Image >>> im = Image.open("lena.ppm") openã«æåããã¨ãopené¢æ°ã¯Imageãªãã¸ã§ã¯ããè¿ãã¾ããããããã°ããªãã¯ãã¡ã¤ã«ã®ä¸èº«ã調ã¹ãããã«ã¢ããªãã¥ã¼ãã使ããã¨ãã§ããããã«ãªãã¾ãã >>> print im.format, im.size, im.mode PPM (512, 512) RGBformatã¢ããªãã¥ã¼ãã¯ç»åã®ã½ã¼ã¹ã¿ã¤ããç¹å®
{{#tags}}- {{label}}
{{/tags}}