GIMP Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
gimppalette
Synopsis
|
Details
gimp_palette_get_foreground ()
|
Get the current GIMP foreground color.
This procedure retrieves the current GIMP foreground color. The foreground color is used in a variety of tools such as paint tools, blending, and bucket fill.
gimp_palette_get_background ()
|
Get the current GIMP background color.
This procedure retrieves the current GIMP background color. The background color is used in a variety of tools such as blending, erasing (with non-alpha images), and image filling.
gimp_palette_set_foreground ()
|
Set the current GIMP foreground color.
This procedure sets the current GIMP foreground color. After this is set, operations which use foreground such as paint tools, blending, and bucket fill will use the new value.
gimp_palette_set_background ()
|
Set the current GIMP background color.
This procedure sets the current GIMP background color. After this is set, operations which use background such as blending, filling images, clearing, and erasing (in non-alpha images) will use the new value.
gimp_palette_set_default_colors ()
|
Set the current GIMP foreground and background colors to black and white.
This procedure sets the current GIMP foreground and background colors to their initial default values, black and white.
gimp_palette_swap_colors ()
|
Swap the current GIMP foreground and background colors.
This procedure swaps the current GIMP foreground and background colors, so that the new foreground color becomes the old background color and vice versa.