See also: Main Index; Alphabetic; Misc; By Author; By Module; By Menu    External Links: The Gimp; Gimp User Manual

The Gimp palette functions

gimp_palette_get_background Get the current GIMP background color.
gimp_palette_get_foreground Get the current GIMP foreground color.
gimp_palette_refresh Refreshes current palettes.
gimp_palette_set_background Set the current GIMP background color.
gimp_palette_set_default_colors Set the current GIMP foreground and background colors to black and white.
gimp_palette_set_foreground Set the current GIMP foreground color.
gimp_palette_swap_colors Swap the current GIMP foreground and background colors.
plug_in_smooth_palette derive smooth palette from image

gimp_palette_get_background

Input: none
Returns:
COLORbackgroundThe 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.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_palette_get_foreground

Input: none
Returns:
COLORforegroundThe 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.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_palette_refresh

Input: none
Returns: nothing
This procedure incorporates all palettes currently in the users palette path.
Adrian Likins; 1998

gimp_palette_set_background

Input:
COLORbackgroundThe background color
Returns: nothing
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.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_palette_set_default_colors

Input: none
Returns: nothing
This procedure sets the current GIMP foreground and background colors to their initial default values, black and white.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_palette_set_foreground

Input:
COLORforegroundThe foreground color
Returns: nothing
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.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_palette_swap_colors

Input: none
Returns: nothing
This procedure swaps the current GIMP foreground and background colors, so that the new foreground color becomes the old background color and vice versa.
Spencer Kimball & Peter Mattis; 1995-1996

plug_in_smooth_palette

Input:
INT32run_modeInteractive, non-interactive
IMAGEimageInput image (unused)
DRAWABLEdrawableInput drawable
INT32widthWidth
INT32heightHeight
INT32ntriesSearch Time
INT32show_imageShow Image?
Returns:
IMAGEnew_imageOutput image
LAYERnew_layerOutput layer
help!
Scott Draves; 1997


The Gimp 1.2.5 (win32)Documentation fresh from PDB12:10:13 Do 19.06.03
Generated by pdb2doc.py written by Hans Breuer <Hans(at)Breuer.org>