This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my gist post |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python-Fu のサンプル・スクリプト | |
# GIMP の Python-Fu コンソールにコピペして実行してください | |
# 画像データの作成 | |
## 指定したサイズで画像データを作成する | |
### width : 画像データの幅 (px) | |
### height : 画像データの高さ (px) | |
def create_image(width, height): | |
# 画像データを生成 | |
return gimp.Image(width, height, RGB) |