#!/usr/bin/python

from gimpfu import *

def test(img, drawable, feather_in, opacity_in):
   gimp.message("Test bestanden")
   width = drawable.width
   height = drawable.height
   pdb.gimp_rect_select(img, 0, 0, width, height, CHANNEL_OP_REPLACE, TRUE, feather_in)
   pdb.gimp_edit_bucket_fill(drawable, FG_BUCKET_FILL, MULTIPLY_MODE, opacity_in, 0, 0, 0, 0)
   pdb.gimp_selection_none(img)

register(
   "python_fu_test",
   "Zeigt einen Dialog an",
   "Hilfe: Zeigt einen Dialog",
   "author",
   "copyright",
   "04/04/2007",
   "<Image>/Python/Test",
   "*",
   [
	(PF_INT, "feather_in", "Weicher Rand", 100),
	(PF_INT, "opacity_in", "Deckkraft", 50)   
   ],
   [],
   test)

main()
