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

The Gimp select functions

gimp_by_color_select Create a selection by selecting all pixels (in the specified drawable) with the same (or similar) color to that specified.
gimp_ellipse_select Create an elliptical selection over the specified image.
gimp_free_select Create a polygonal selection over the specified image.
gimp_fuzzy_select Create a fuzzy selection starting at the specified coordinates on the specified drawable.
gimp_image_floating_selection This procedure is deprecated! Use 'gimp_image_get_floating_sel' instead.
gimp_image_get_selection Returns the specified image's selection.
gimp_path_to_selection Transforms the active path into a selection
gimp_rect_select Create a rectangular selection over the specified image;
gimp_selection_all Select all of the image.
gimp_selection_border Border the image's selection
gimp_selection_bounds Find the bounding box of the current selection.
gimp_selection_clear This procedure is deprecated! Use 'gimp_selection_none' instead.
gimp_selection_combine Combines the specified channel with the selection mask.
gimp_selection_feather Feather the image's selection
gimp_selection_float Float the selection from the specified drawable with initial offsets as specified.
gimp_selection_grow Grow the image's selection
gimp_selection_invert Invert the selection mask.
gimp_selection_is_empty Determine whether the selection is empty.
gimp_selection_layer_alpha Transfer the specified layer's alpha channel to the selection mask.
gimp_selection_load Transfer the specified channel to the selection mask.
gimp_selection_none Deselect the entire image.
gimp_selection_save Copy the selection mask to a new channel.
gimp_selection_sharpen Sharpen the selection mask.
gimp_selection_shrink Shrink the image's selection
gimp_selection_translate Translate the selection by the specified offsets.
gimp_selection_value Find the value of the selection at the specified coordinates.

gimp_by_color_select

Input:
DRAWABLEdrawableThe affected drawable
COLORcolorThe color to select
INT32thresholdThreshold in intensity levels 0 <= threshold <= 255
INT32operationThe selection operation: { GIMP_CHANNEL_OP_ADD (0), GIMP_CHANNEL_OP_SUBTRACT (1), GIMP_CHANNEL_OP_REPLACE (2), GIMP_CHANNEL_OP_INTERSECT (3) }
INT32antialiasAntialiasing (TRUE or FALSE)
INT32featherFeather option for selections
SUCCESSfeather_radiusRadius for feather operation
INT32sample_mergedUse the composite image, not the drawable
Returns: nothing
This tool creates a selection over the specified image. A by-color selection is determined by the supplied color under the constraints of the specified threshold. Essentially, all pixels (in the drawable) that have color sufficiently close to the specified color (as determined by the threshold value) are included in the selection. The antialiasing parameter allows the final selection mask to contain intermediate values based on close misses to the threshold bar. Feathering can be enabled optionally and is controlled with the "feather_radius" parameter. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_ellipse_select

Input:
IMAGEimageThe image
SUCCESSxx coordinate of upper-left corner of ellipse bounding box
SUCCESSyy coordinate of upper-left corner of ellipse bounding box
SUCCESSwidthThe width of the ellipse: 0 < width
SUCCESSheightThe height of the ellipse: 0 < height
INT32operationThe selection operation: { GIMP_CHANNEL_OP_ADD (0), GIMP_CHANNEL_OP_SUBTRACT (1), GIMP_CHANNEL_OP_REPLACE (2), GIMP_CHANNEL_OP_INTERSECT (3) }
INT32antialiasAntialiasing (TRUE or FALSE)
INT32featherFeather option for selections
SUCCESSfeather_radiusRadius for feather operation
Returns: nothing
This tool creates an elliptical selection over the specified image. The elliptical region can be either added to, subtracted from, or replace the contents of the previous selection mask. If antialiasing is turned on, the edges of the elliptical region will contain intermediate values which give the appearance of a sharper, less pixelized edge. This should be set as TRUE most of the time. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_free_select

Input:
IMAGEimageThe image
INT32num_segsNumber of points (count 1 coordinate as two points)
FLOATARRAYsegsArray of points: { p1.x, p1.y, p2.x, p2.y, ..., pn.x, pn.y}
INT32operationThe selection operation: { GIMP_CHANNEL_OP_ADD (0), GIMP_CHANNEL_OP_SUBTRACT (1), GIMP_CHANNEL_OP_REPLACE (2), GIMP_CHANNEL_OP_INTERSECT (3) }
INT32antialiasAntialiasing (TRUE or FALSE)
INT32featherFeather option for selections
SUCCESSfeather_radiusRadius for feather operation
Returns: nothing
This tool creates a polygonal selection over the specified image. The polygonal region can be either added to, subtracted from, or replace the contents of the previous selection mask. The polygon is specified through an array of floating point numbers and its length. The length of array must be 2n, where n is the number of points. Each point is defined by 2 floating point values which correspond to the x and y coordinates. If the final point does not connect to the starting point, a connecting segment is automatically added. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_fuzzy_select

Input:
DRAWABLEdrawableThe affected drawable
SUCCESSxx coordinate of initial seed fill point: (image coordinates)
SUCCESSyy coordinate of initial seed fill point: (image coordinates)
INT32thresholdThreshold in intensity levels 0 <= threshold <= 255
INT32operationThe selection operation: { GIMP_CHANNEL_OP_ADD (0), GIMP_CHANNEL_OP_SUBTRACT (1), GIMP_CHANNEL_OP_REPLACE (2), GIMP_CHANNEL_OP_INTERSECT (3) }
INT32antialiasAntialiasing (TRUE or FALSE)
INT32featherFeather option for selections
SUCCESSfeather_radiusRadius for feather operation
INT32sample_mergedUse the composite image, not the drawable
Returns: nothing
This tool creates a fuzzy selection over the specified image. A fuzzy selection is determined by a seed fill under the constraints of the specified threshold. Essentially, the color at the specified coordinates (in the drawable) is measured and the selection expands outwards from that point to any adjacent pixels which are not significantly different (as determined by the threshold value). This process continues until no more expansion is possible. The antialiasing parameter allows the final selection mask to contain intermediate values based on close misses to the threshold bar at pixels along the seed fill boundary. Feathering can be enabled optionally and is controlled with the "feather_radius" paramter. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored.If the sample is merged, the specified coordinates are relative to the image origin; otherwise, they are relative to the drawable's origin.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_rect_select

Input:
IMAGEimageThe image
SUCCESSxx coordinate of upper-left corner of rectangle
SUCCESSyy coordinate of upper-left corner of rectangle
SUCCESSwidthThe width of the rectangle: 0 < width
SUCCESSheightThe height of the rectangle: 0 < height
INT32operationThe selection operation: { GIMP_CHANNEL_OP_ADD (0), GIMP_CHANNEL_OP_SUBTRACT (1), GIMP_CHANNEL_OP_REPLACE (2), GIMP_CHANNEL_OP_INTERSECT (3) }
INT32featherFeather option for selections
SUCCESSfeather_radiusRadius for feather operation
Returns: nothing
This tool creates a rectangular selection over the specified image. The rectangular region can be either added to, subtracted from, or replace the contents of the previous selection mask. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_selection_all

Input:
IMAGEimageThe image
Returns: nothing
This procedure sets the selection mask to completely encompass the image. Every pixel in the selection channel is set to 255.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_selection_border

Input:
IMAGEimageThe image
INT32radiusRadius of border (in pixels)
Returns: nothing
This procedure borders the selection. Bordering creates a new selection which is defined along the boundary of the previous selection at every point within the specified radius.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_selection_bounds

Input:
IMAGEimageThe image
Returns:
INT32non_emptyTrue if there is a selection
INT32x1x coordinate of upper left corner of selection bounds
INT32y1y coordinate of upper left corner of selection bounds
INT32x2x coordinate of lower right corner of selection bounds
INT32y2y coordinate of lower right corner of selection bounds
This procedure returns whether there is a selection for the specified image. If there is one, the upper left and lower right corners of the bounding box are returned. These coordinates are relative to the image. Please note that the pixel specified by the lower righthand coordinate of the bounding box is not part of the selection. The selection ends at the upper left corner of this pixel. This means the width of the selection can be calculated as (x2 - x1), its height as (y2 - y1).
Spencer Kimball & Peter Mattis; 1995-1996

gimp_selection_clear

Input:
IMAGEimageThe image
Returns: nothing
This procedure is deprecated! Use 'gimp_selection_none' instead.
;

gimp_selection_combine

Input:
CHANNELchannelThe channel
INT32operationThe selection operation: { GIMP_CHANNEL_OP_ADD (0), GIMP_CHANNEL_OP_SUBTRACT (1), GIMP_CHANNEL_OP_REPLACE (2), GIMP_CHANNEL_OP_INTERSECT (3) }
Returns: nothing
This procedure combines the specified channel into the selection mask.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_selection_feather

Input:
IMAGEimageThe image
SUCCESSradiusRadius of feather (in pixels)
Returns: nothing
This procedure feathers the selection. Feathering is implemented using a gaussian blur.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_selection_float

Input:
DRAWABLEdrawableThe drawable from which to float selection
INT32offxx offset for translation
INT32offyy offset for translation
Returns:
LAYERlayerThe floated layer
This procedure determines the region of the specified drawable that lies beneath the current selection. The region is then cut from the drawable and the resulting data is made into a new layer which is instantiated as a floating selection. The offsets allow initial positioning of the new floating selection.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_selection_grow

Input:
IMAGEimageThe image
INT32stepsSteps of grow (in pixels)
Returns: nothing
This procedure grows the selection. Growing involves expanding the boundary in all directions by the specified pixel amount.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_selection_invert

Input:
IMAGEimageThe image
Returns: nothing
This procedure inverts the selection mask. For every pixel in the selection channel, its new value is calculated as (255 - old_value).
Spencer Kimball & Peter Mattis; 1995-1996

gimp_selection_is_empty

Input:
IMAGEimageThe image
Returns:
INT32is_emptyIs the selection empty?
This procedure returns non-zero if the selection for the specified image is not empty.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_selection_load

Input:
CHANNELchannelThe channel
Returns: nothing
This procedure loads the specified channel into the selection mask.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_selection_none

Input:
IMAGEimageThe image
Returns: nothing
This procedure deselects the entire image. Every pixel in the selection channel is set to 0.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_selection_save

Input:
IMAGEimageThe image
Returns:
CHANNELchannelThe new channel
This procedure copies the selection mask and stores the content in a new channel. The new channel is automatically inserted into the image's list of channels.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_selection_sharpen

Input:
IMAGEimageThe image
Returns: nothing
This procedure sharpens the selection mask. For every pixel in the selection channel, if the value is > 0, the new pixel is assigned a value of 255. This removes any "anti-aliasing" that might exist in the selection mask's boundary.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_selection_shrink

Input:
IMAGEimageThe image
INT32radiusRadius of shrink (in pixels)
Returns: nothing
This procedure shrinks the selection. Shrinking invovles trimming the existing selection boundary on all sides by the specified number of pixels.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_selection_translate

Input:
IMAGEimageThe image
INT32offxx offset for translation
INT32offyy offset for translation
Returns: nothing
This procedure actually translates the selection for the specified image by the specified offsets. Regions that are translated from beyond the bounds of the image are set to empty. Valid regions of the selection which are translated beyond the bounds of the image because of this call are lost.
Spencer Kimball & Peter Mattis; 1995-1996

gimp_selection_value

Input:
IMAGEimageThe image
INT32xx coordinate of value
INT32yy coordinate of value
Returns:
INT32valueValue of the selection: (0 <= value <= 255)
This procedure returns the value of the selection at the specified coordinates. If the coordinates lie out of bounds, 0 is returned.
Spencer Kimball & Peter Mattis; 1995-1996


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>