12-31-2022, 03:33 PM
- You register the plugin as taking width, height parameters, but then attach it to a function that takes image, layer, width, height (where image, layer are not used). I'm even surprised that it works at all.
- See pdb.gimp_drawable_fill(drawable, fill_type); The doc says: "Its main purpose is to fill a newly created drawable before adding it to the image." (which implies that creates layers aren't filled, Black shows up because under the hood it's all zeroes.
PS: Using LAYER_MODE_NORMAL is much better than 28.