ãããçµµã¨ãã£ã¿EDGEã®ãã¡ã¤ã«ãGIMPã§éãããã®ãã©ã°ã¤ã³æ¸ãã
ä»ã¾ã§ãããçµµæãã®ã«EDGEã使ã£ã¦ããããªãã ãã©ããµã¨GIMPã«ç§»è¡ãããã¨ãæã£ããã©ãããã*1ãã¨ãããããããªãå¿é
ãããããã¦ã
ãããããEDGEå½¢å¼ç¨ã®C++ã©ã¤ãã©ãªããããããªãã§ããããããã½ã¼ã¹ã³ã¼ãå
¬éããã¦ãã¨ãã*2ã
ããã§ãµã¨
GIMPã£ã¦Pythonã§ãã©ã°ã¤ã³æ¸ããããªâ¦ï¼
ã£ã¦æã£ã¦ãã¾ã£ããã§ãããã§ãããè¦å´ãã¤ã¤ãåæ¥ãããã§ã§ããã
é·ã(ãï¾Ð´ï¾)ã£ã¦æã£ãã®ã§ç¶ããèªãããã§ã
EDGE形式ファイルをGIMPで開くためのGIMPプラグイン (Python-fu)
ä»æ§
- ééè²ã¯èæ¯è²ã¨åããããã¯è¿ããã¬ãããè¨å®ããã¾ã
- ã¬ã¤ã¤ã¼ã¯ã¡ããã¨ç¶æãã¾ãã
- ã¤ã³ããã¯ã¹ã«ã©ã¼ã®ã¿å¯¾å¿
è¦å´ãããã¨
- Python-fuã®ããã¥ã¡ã³ãã©ãã ã¼ã
- GIMP Python Documentation ããã ã¨æããã ãã©ããã£ããèªã¿ã«ãããdrawableã¨ãä½ã¢ã³ã ãã
- ãµã³ãã«ã³ã¼ããªããã§ãã
- ä»å±ã®ãã©ã°ã¤ã³ã§ç»åå ¥åºåé¢ä¿ãã¤Pythonå®è£ ãªã®ã¯ file-openraster.py ãããªãã£ãã
- ãããã°ãã¥ãããã¡ãããã¥ãããã¿ããªã©ããã¦ãã®ã£ã¦ã¬ãã«ã§ãã¹ããå
·ä½çã«ã¯
- æ¨æºåºåã»ã¨ã©ã¼åºåãNULLã«ç¹ãã£ã¦ãã®ãç¥ãããã--verboseãªãã·ã§ã³ã§ã³ã³ã½ã¼ã«ã¤ãã¦ãåºã¦ããã
- ä»æ¹ãªãã®ã§ãã¡ã¤ã«ãéãã¦ããã«æ¸ããèªåãã°ãã¡ã¤ã«ã
- pdb (Procedural Database Procedures) ã¨ãããã¨ããã«ããé¢æ°ä½¿ããªãã¨ãã£ããããã«ãã (colormapã®åå¾ã¨ã)
- ããpdbã®ãªãã¡ã¬ã³ã¹ãããã§ããããªããã§ããã
- çé¢ç®ã«set_pixelããã¾ããã¨ã¹ãã¼ãã«é
ãã®ã§ãã¡ããã¨ç¡è¦ããã¨ããã¯ç¡è¦ãã¾ããã
- EDGEã®å ´åã ã¨ééè²æ±ãã®ãã¤ãlayer.fill(TRANSPARENT_FILL) ã§åãã¦éæãããªãã¨ãã以å¤ã layer.set_pixel ããªãã¨10æ°ç§ããããã¨ã«ãªã
- ãã ééãã¦ãé¨åããã¬ããã®å¤ãªã¨ããã«ãããã³ã°ããã¦ããã¨ããã£ã¦ããã©ã
- ãã©ã°ã¤ã³ã®å®è£ ã ã¨ãéæ度ã0 (å®å ¨éæ) ã®ãã¤ã¯å¼·å¶çã«ééè²ã®ã¤ã³ããã¯ã¹ã«å¤æ´ãã¦ã
*1:ã¬ã¤ã¤ã¼ãç¶æããã¾ã¾å¥ã®ãã¡ã¤ã«å½¢å¼ã«ç§»è¡ãã¨ãããã¨ãèããã¨ãã£ããGIMPå½¢å¼ã«ããæ¹ããããããããªãã§ããã¼ãã£ã¦ããçºæ³
*2:Susieãã©ã°ã¤ã³ãããã®ã¯ç¥ã£ã¦ã