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

The Gimp pattern functions

gimp_context_get_pattern Retrieve the currently active pattern.
gimp_context_set_pattern Set the specified pattern as the active pattern.
gimp_pattern_get_info Retrieve information about the specified pattern.
gimp_pattern_get_pixels Retrieve information about the specified pattern (including pixels).
gimp_patterns_close_popup Popdown the Gimp pattern selection.
gimp_patterns_get_list Retrieve a complete listing of the available patterns.
gimp_patterns_get_pattern This procedure is deprecated! Use 'gimp_context_get_pattern' instead.
gimp_patterns_get_pattern_data This procedure is deprecated! Use 'gimp_pattern_get_pixels' instead.
gimp_patterns_list This procedure is deprecated! Use 'gimp_patterns_get_list' instead.
gimp_patterns_popup Invokes the Gimp pattern selection.
gimp_patterns_refresh Refresh current patterns. This function always succeeds.
gimp_patterns_set_pattern This procedure is deprecated! Use 'gimp_context_set_pattern' instead.
gimp_patterns_set_popup Sets the current pattern selection in a popup.
python_fu_pattern Creates a possibly overlapping pattern

gimp_pattern_get_info

Input:
STRINGnameThe pattern name.
Returns:
INT32widthThe pattern width
INT32heightThe pattern height
INT32bppThe pattern bpp
This procedure retrieves information about the specified pattern. This includes the pattern extents (width and height).
Michael Natterer; 2004

gimp_pattern_get_pixels

Input:
STRINGnameThe pattern name.
Returns:
INT32widthThe pattern width
INT32heightThe pattern height
INT32bppThe pattern bpp
INT32num_color_bytesNumber of pattern bytes
INT8ARRAYcolor_bytesThe pattern data.
This procedure retrieves information about the specified. This includes the pattern extents (width and height), its bpp and its pixel data.
Michael Natterer; 2004

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_list

Input:
STRINGfilterAn optional regular expression used to filter the list
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_context_set_pattern'.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_patterns_get_pattern

Input: none
Returns:
STRINGnameThe pattern name
INT32widthThe pattern width
INT32heightThe pattern height
This procedure is deprecated! Use 'gimp_context_get_pattern' instead.
;

gimp_patterns_get_pattern_data

Input:
STRINGnameThe pattern name ("" means currently 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 is deprecated! Use 'gimp_pattern_get_pixels' instead.
;

gimp_patterns_list

Input:
STRINGfilterAn optional regular expression used to filter the list
Returns:
INT32num_patternsThe number of patterns in the pattern list
STRINGARRAYpattern_listThe list of pattern names
This procedure is deprecated! Use 'gimp_patterns_get_list' instead.
;

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_refresh

Input: none
Returns: nothing
This procedure retrieves all patterns currently in the user's pattern path and updates all pattern dialogs accordingly.
Michael Natterer; 2002

gimp_patterns_set_pattern

Input:
STRINGnameThe name of the pattern
Returns: nothing
This procedure is deprecated! Use 'gimp_context_set_pattern' instead.
;

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
SUCCESSangleAngle 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


The Gimp 2.3.2 (win32)Documentation fresh from PDB22:53:15 Fr 22.07.2005
Generated by pdb2doc.py written by Hans Breuer <Hans@Breuer.org>