The
Paint Bucket tool
fills
an area that is similar in color value to the pixels you click.
You can fill an area with the foreground color or a pattern.
If you don’t want to fill transparent areas
in a layer, you can lock the layer’s transparency in the Layers
palette. You can specify any of the following Paint Bucket tool options: