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

The Gimp pattern functions

gimp_patterns_close_popup Popdown the Gimp pattern selection.
gimp_patterns_get_pattern Retrieve information about the currently active pattern.
gimp_patterns_get_pattern_data Retrieve information about the currently active pattern (including data).
gimp_patterns_list Retrieve a complete listing of the available patterns.
gimp_patterns_popup Invokes the Gimp pattern selection.
gimp_patterns_set_pattern Set the specified pattern as the active pattern.
gimp_patterns_set_popup Sets the current pattern selection in a popup.
python_fu_pattern Creates a possibly overlapping pattern
script_fu_beveled_pattern_arrow <Toolbox>/Xtns/Script-Fu/Web Page Themes/Beveled Pattern/Arrow...
script_fu_beveled_pattern_bullet <Toolbox>/Xtns/Script-Fu/Web Page Themes/Beveled Pattern/Bullet...
script_fu_beveled_pattern_button <Toolbox>/Xtns/Script-Fu/Web Page Themes/Beveled Pattern/Button...
script_fu_beveled_pattern_heading <Toolbox>/Xtns/Script-Fu/Web Page Themes/Beveled Pattern/Heading...
script_fu_beveled_pattern_hrule <Toolbox>/Xtns/Script-Fu/Web Page Themes/Beveled Pattern/Hrule...
script_fu_camo_pattern <Toolbox>/Xtns/Script-Fu/Patterns/Camouflage...
script_fu_swirly_pattern <Toolbox>/Xtns/Script-Fu/Patterns/Swirly (tileable)...

gimp_patterns_close_popup

Input:
STRINGpattern_callbackThe name of the callback registered for this popup
Returns: nothing
This procedure closes an opened pattern selection dialog.
Andy Thomas; 1998

gimp_patterns_get_pattern

Input: none
Returns:
STRINGnameThe pattern name
INT32widthThe pattern width
INT32heightThe pattern height
This procedure retrieves information about the currently active pattern. This includes the pattern name, and the pattern extents (width and height). All clone and bucket-fill operations with patterns will use this pattern to control the application of paint to the image.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_patterns_get_pattern_data

Input:
STRINGnamethe pattern name ("" means current active pattern)
Returns:
STRINGnameThe pattern name
INT32widthThe pattern width
INT32heightThe pattern height
INT32mask_bppPattern bytes per pixel
INT32lengthLength of pattern mask data
INT8ARRAYmask_dataThe pattern mask data
This procedure retrieves information about the currently active pattern. This includes the pattern name, and the pattern extents (width and height). It also returns the pattern data.
Andy Thomas; 1998

gimp_patterns_list

Input: none
Returns:
INT32num_patternsThe number of patterns in the pattern list
STRINGARRAYpattern_listThe list of pattern names
This procedure returns a complete listing of available GIMP patterns. Each name returned can be used as input to the 'gimp_patterns_set_pattern'.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_patterns_popup

Input:
STRINGpattern_callbackThe callback PDB proc to call when pattern selection is made
STRINGpopup_titleTitle to give the pattern popup window
STRINGinitial_patternThe name of the pattern to set as the first selected
Returns: nothing
This procedure popups the pattern selection dialog.
Andy Thomas; 1998

gimp_patterns_set_pattern

Input:
STRINGnameThe pattern name
Returns: nothing
This procedure allows the active pattern mask to be set by specifying its name. The name is simply a string which corresponds to one of the names of the installed patterns. If there is no matching pattern found, this procedure will return an error. Otherwise, the specified pattern becomes active and will be used in all subsequent paint operations.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_patterns_set_popup

Input:
STRINGpattern_callbackThe name of the callback registered for this popup
STRINGpattern_nameThe name of the pattern to set as selected
Returns: nothing
Sets the current pattern selection in a popup.
Andy Thomas; 1998

python_fu_pattern

Input:
INT32run_modeInteractive, Non-Interactive
IMAGEimageThe image to work on
DRAWABLEdrawableThe drawable to work on
COLORcolorThe colour of the form
INT32edgesEdges of form (>3!)
INT32radiusRadius as distance of corner points from center
FLOATangleAngle to rotate form
INT32x_deltaX delta: distance of centers
INT32y_deltaY delta: distance of centers
INT32x_mirrormirror every 2nd line
INT32y_mirrormirror every 2nd column
Returns: nothing
Creates a possibly overlapping pattern out of simple geometric forms
Hans Breuer <Hans@Breuer.Org>; 1999

script_fu_beveled_pattern_arrow

Input:
INT32run_modeInteractive, non-interactive
STRINGvalueSize
INT32optionOrientation
STRINGpatternPattern
Returns: nothing
Beveled pattern arrow
Federico Mena Quintero; July 1997

script_fu_beveled_pattern_bullet

Input:
INT32run_modeInteractive, non-interactive
STRINGvalueDiameter
STRINGpatternPattern
INT32toggleTransparent Background
Returns: nothing
Beveled pattern bullet
Federico Mena Quintero; July 1997

script_fu_beveled_pattern_button

Input:
INT32run_modeInteractive, non-interactive
STRINGstringText
STRINGvalueFont Size (pixels)
STRINGfontFont
COLORcolorText Color
STRINGpatternPattern
INT32togglePressed
Returns: nothing
Beveled pattern button
Federico Mena Quintero; July 1997

script_fu_beveled_pattern_heading

Input:
INT32run_modeInteractive, non-interactive
STRINGstringText
STRINGvalueFont Size (pixels)
STRINGfontFont
STRINGpatternPattern
INT32toggleTransparent Background
Returns: nothing
Beveled pattern heading
Federico Mena Quintero; July 1997

script_fu_beveled_pattern_hrule

Input:
INT32run_modeInteractive, non-interactive
STRINGvalueWidth
STRINGvalueHeight
STRINGpatternPattern
Returns: nothing
Beveled pattern hrule
Federico Mena Quintero; July 1997

script_fu_camo_pattern

Input:
INT32run_modeInteractive, non-interactive
STRINGvalueImage Size
STRINGvalueGranularity
COLORcolorColor 1
COLORcolorColor 2
COLORcolorColor 3
INT32toggleSmooth
INT32toggleFlatten Image
Returns: nothing
Camouflage pattern
28th April 1998; Chris Gutteridge / ECS @ University of Southampton, England

script_fu_swirly_pattern

Input:
INT32run_modeInteractive, non-interactive
STRINGvalueQuarter Size
STRINGvalueWhirl Angle
STRINGvalueNumber of Times to Whirl
Returns: nothing
Create a swirly pattern
Federico Mena Quintero; June 1997


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