Demo- Invoke the console by selecting: .
- Close all the images.
- Create a new image with the background as its filling.
- At the command prompt of the console, type
(gimp-image-list) and press enter. - Record the index of the image. (it's inside the inner parenthesis)
- Type
(gimp-image-active-drawable $image) and record the drawable number. (In the GIMP internals, a drawable is a base class for layers and such) - Type
(gimp-rect-select $image 10 10 50 80 ADD 0 0) and press enter. - Type
(gimp-rect-select $image 40 70 50 80 ADD 0 0) and press enter. - Type
(gimp-bucket-fill $drawable FG-BUCKET-FILL NORMAL 100 0 0 0 0) and press enter. - Note: Consult the DB browser for information regarding what every function and parameter here do.
|