home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / plug-ins / gap / gap_layer_copy.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-24  |  2.0 KB  |  59 lines

  1. /* my_layer_copy.h
  2.  * 1997.11.06 hof (Wolfgang Hofer)
  3.  *
  4.  *
  5.  *  this procedure works similar to gimp_layer_copy(src_id);
  6.  *  ==> gimp_layer_copy works only for layers within the same image !!
  7.  *  ==> Workaround:
  8.  *      p_my_layer_copy is my 'private' version of layercopy
  9.  *      that can copy layers from another image of the same type.
  10.  *
  11.  * returns the id of the new layer
  12.  *      and the offests of the original within the source image
  13.  */
  14. /* The GIMP -- an image manipulation program
  15.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  16.  *
  17.  * This program is free software; you can redistribute it and/or modify
  18.  * it under the terms of the GNU General Public License as published by
  19.  * the Free Software Foundation; either version 2 of the License, or
  20.  * (at your option) any later version.
  21.  *
  22.  * This program is distributed in the hope that it will be useful,
  23.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  24.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  25.  * GNU General Public License for more details.
  26.  *
  27.  * You should have received a copy of the GNU General Public License
  28.  * along with this program; if not, write to the Free Software
  29.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  30.  */
  31.  
  32. /* revision history:
  33.  * version 0.98.00 1998.11.26   hof: added channel copy
  34.  * version 0.90.00;             hof: 1.st (pre) release
  35.  */
  36.  
  37. #ifndef _GAP_LAYER_COPY_H
  38. #define _GAP_LAYER_COPY_H
  39.  
  40. /* SYTEM (UNIX) includes */ 
  41. #include <stdio.h>
  42. #include <stdlib.h>
  43.  
  44. /* GIMP includes */
  45. #include "gtk/gtk.h"
  46. #include "libgimp/gimp.h"
  47.  
  48. gint32 p_my_layer_copy (gint32 dst_image_id,
  49.                         gint32 src_layer_id,
  50.                         gdouble    opacity, /* 0.0 upto 100.0 */
  51.                         GimpLayerModeEffects mode,
  52.                         gint *src_offset_x,
  53.                         gint *src_offset_y );
  54.  
  55. gint32 p_my_channel_copy (gint32 dst_image_id,
  56.                         gint32 src_channel_id);
  57.  
  58. #endif
  59.