03-15-2020, 09:32 AM
What you want is:
To recap the various fill options, you can/should currently use:
Avoid using gimp_edit_bucket_fill, gimp_edit_bucket_fill_full, gimp_drawable_edit_fill, and gimp_bucket_fill that are deprecated.
Code:
➤> pdb.gimp_image_select_rectangle(img, CHANNEL_OP_REPLACE, gPosX+pX, gPosY+pY, wid, hig)
➤> pdb.gimp_drawable_edit_fill(draw,FILL_FOREGROUND)
To recap the various fill options, you can/should currently use:
- gimp_drawable_edit_bucket_fill: simple standard bucket-fill with "similar colors", abides to both color and selection (standard GUI tool is either color or selection). Most parameters are in the gimp_context_* functions.
- gimp_drawable_edit_fill: fill selection on drawable (simpler form of bucket-fill)
- gimp_drawable_fill: fill whole drawable regardless of selection (used for initialization)
Avoid using gimp_edit_bucket_fill, gimp_edit_bucket_fill_full, gimp_drawable_edit_fill, and gimp_bucket_fill that are deprecated.