GIMP Context


Getting Basic Context Information

(context-get-bgcolor)
MediaScheme GIMP Procedure. Returns GIMP's current background color (as an RGB color).
(context-get-brush)
MediaScheme GIMP Procedure. Get GIMP's active brush.
(context-get-fgcolor)
MediaScheme GIMP Procedure. Returns GIMP's current foreground color (as an RGB color).

Setting Basic Context Information

(context-set-bgcolor! color)
MediaScheme GIMP Procedure. Sets GIMP's current background color to color.
(context-set-brush! brush-name) , (context-set-brush! brush-name brush-size)
MediaScheme GIMP Procedure. Sets GIMP's current brush to brush-name. If the brush-size is specified, also sets the size of brush. Only works for selected brushes (typically, those that start with a number, like "2. Hardness 100").
(context-set-fgcolor! color)
MediaScheme GIMP Procedure. Sets GIMP's current foreground color to color.

Listing Values

(context-get-color-names)
MediaScheme GIMP Procedure. Get a vector of all the available color names.
(context-list-brushes)
MediaScheme GIMP Procedure. List all valid brush names.
(context-list-brushes pattern)
MediaScheme GIMP Procedure. List all the valid brush names that contain pattern.
(context-list-colors)
MediaScheme GIMP Procedure. List all valid color names.
(context-list-colors pattern)
MediaScheme GIMP Procedure. List all the valid color names that contain pattern.
(context-list-fonts)
MediaScheme GIMP Procedure. List all valid font names.
(context-list-fonts pattern)
MediaScheme GIMP Procedure. List all the available font names that contain pattern.

Miscellaneous

(context-update-displays!)
MediaScheme GIMP Procedure. Update all of the displays to show changes to images.

Jerod Weinman

Copyright © 2007-2014 Janet Davis, Matthew Kluber, Samuel A. Rebelsky, and Jerod Weinman. (Selected materials copyright by John David Stone and Henry Walker and used by permission.)

This material is based upon work partially supported by the National Science Foundation under Grant No. CCLI-0633090. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.

Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License .