CSC151.01 2009F Functional Problem Solving : Reference

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)
MediaScheme GIMP Procedure. Sets GIMP's current brush to brush-name.
(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.

Creative Commons License

Samuel A. Rebelsky, rebelsky@grinnell.edu

Copyright (c) 2007-9 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.

This work is licensed under a Creative Commons Attribution-NonCommercial 2.5 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/2.5/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.