gimp_selection_border << INDEX >> gimp_selection_clear

gimp_selection_bounds (1995-1996)

NAME
gimp_selection_bounds - Find the bounding box of the current selection.
SYNOPSIS
(non_empty,x1,y1,x2,y2) = gimp_selection_bounds (image)
DESCRIPTION
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.
INPUT ARGUMENTS
TYPENAMEDESCRIPTION
IMAGEimageThe image
RETURN VALUES
TYPENAMEDESCRIPTION
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
SOME SYNTAX ALTERNATIVES
(non_empty,x1,y1,x2,y2) = $image->selection_bounds
AUTHOR
Spencer Kimball & Peter Mattis
(c)1995-1996 Spencer Kimball & Peter Mattis


This page was created by gimpdoc, written by Marc Lehmann <pcg@goof.com>