Pythonã§ãã©ã¯ã¿ã«
Python Imaging Library (PIL)ã使ãã¨Pythonã§ç»åå¦çãããããã§ããã¨ããã®ã§ããã使ã£ã¦ãã©ã´ã³æ²ç·ãæãã¦ã¿ã¾ããã
ãã¾ãæ¥æ¬èªã®æ
å ±ã¯ãªãããã§ãããããã¥ã¡ã³ãã¯è±å¯ã ã¨æãã¾ãã
以ä¸ä»å使ã£ã¦ããé¢æ°ã®ããã
- Image.new(mode,size,[color])
æå®ãããµã¤ãºã¨ã¢ã¼ãã§ç»åã¤ã¡ã¼ã¸ãä½æããã
ä»åã¯300x300ã§8-bit pixels,èæ¯ãç½ã§ç»åãä½æãã¦ããã
- ImageDraw.Draw(image)
ä¸ããããimageããDraw instanceãä½æããã
æç»æ示ã¯ãã®ã¤ã³ã¹ã¿ã³ã¹ã«å¯¾ãã¦ãããªãã
- ImageDraw.line(xy,options)
xyã¯[(x,y),(gx,gy)]ã¿ããã«ãã¦ã(x,y)ãã(gx,gy)ã¾ã§ç·ãå¼ãã
oprionã¯ä»åã¯fill=0ã¨è²ãé»ã«æå®ãã¦ããã
- Image.show()
ã¤ã¡ã¼ã¸ã表示ã
- Image.save()
ã¤ã¡ã¼ã¸ãä¿åãä»åã¯pngã
ä»ã«ãããããæ©è½ãããã¾ãã詳ãã㯠RELOADING...