close
from gimpfu import *
 
def say_hello_world(img, layer) :    
    gimp.set_foreground(0, 250, 0) # 設定前景顏色
    gimp.set_background(0, 0, 250) # 設定背景顏色 
    gimp.message("Is Change Color") # 設定完後,在下方顯示訊息
 
register(
    "python_fu_test_hello_world",
    "Hello world",
    "Display a 'hello world' message",
    "Yen Lin, Huang",
    "Open source (BSD 3-clause license)",
    "2014",
    "<Image>/My Test/Test/Hello world", # 標題列位置
    "*",
    [],
    [],
    say_hello_world)
 
main()


詳情可以看 GIMP Python API : http://www.gimp.org/docs/python/index.html


arrow
arrow
    全站熱搜

    黃彥霖 發表在 痞客邦 留言(0) 人氣()