home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / libgimp / gimpselection.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-25  |  1.7 KB  |  52 lines

  1. /* LIBGIMP - The GIMP Library
  2.  * Copyright (C) 1995-2000 Peter Mattis and Spencer Kimball
  3.  *
  4.  * gimpselection.c
  5.  *
  6.  * This library is free software; you can redistribute it and/or
  7.  * modify it under the terms of the GNU Lesser General Public
  8.  * License as published by the Free Software Foundation; either
  9.  * version 2 of the License, or (at your option) any later version.
  10.  *
  11.  * This library is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.  * Lesser General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU Lesser General Public
  17.  * License along with this library; if not, write to the
  18.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19.  * Boston, MA 02111-1307, USA.
  20.  */
  21.  
  22. #include "gimp.h"
  23.  
  24. /**
  25.  * gimp_selection_float:
  26.  * @image_ID: ignored
  27.  * @drawable_ID: The drawable from which to float selection.
  28.  * @offx: x offset for translation.
  29.  * @offy: y offset for translation.
  30.  *
  31.  * Float the selection from the specified drawable with initial offsets
  32.  * as specified.
  33.  *
  34.  * This procedure determines the region of the specified drawable that
  35.  * lies beneath the current selection. The region is then cut from the
  36.  * drawable and the resulting data is made into a new layer which is
  37.  * instantiated as a floating selection. The offsets allow initial
  38.  * positioning of the new floating selection.
  39.  *
  40.  * Returns: The floated layer.
  41.  */
  42. gint32
  43. gimp_selection_float (gint32 image_ID,
  44.               gint32 drawable_ID,
  45.               gint   offx,
  46.               gint   offy)
  47. {
  48.   return _gimp_selection_float (drawable_ID, 
  49.                 offx, 
  50.                 offy);
  51. }
  52.