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_range_ops.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-24  |  3.5 KB  |  100 lines

  1. /* gap_range_ops.h
  2.  * 1998.07.03 hof (Wolfgang Hofer)
  3.  *
  4.  * GAP ... Gimp Animation Plugins
  5.  *
  6.  * GAP operations on frame Ranges (from - to)
  7.  *
  8.  */
  9. /* The GIMP -- an image manipulation program
  10.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  11.  *
  12.  * This program is free software; you can redistribute it and/or modify
  13.  * it under the terms of the GNU General Public License as published by
  14.  * the Free Software Foundation; either version 2 of the License, or
  15.  * (at your option) any later version.
  16.  *
  17.  * This program is distributed in the hope that it will be useful,
  18.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20.  * GNU General Public License for more details.
  21.  *
  22.  * You should have received a copy of the GNU General Public License
  23.  * along with this program; if not, write to the Free Software
  24.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  25.  */
  26.  
  27. /* revision history:
  28.  * 1.1.10a; 1999/10/22   hof: extended dither options in gap_range_conv
  29.  * 0.97.00; 1998/10/19   hof: extended gap_range_to_multilayer layer seletion
  30.  * 0.96.03; 1998/08/31   hof: gap_range_to_multilayer: all params available
  31.  *                            in non-interactive runmode
  32.  * 0.96.00; 1998/07/02   hof: (extracted from gap_lib.h)
  33.  * 0.94.01; 1998/04/27   hof: added flatten_mode to plugin: gap_range_to_multilayer
  34.  */
  35.  
  36. #ifndef _GAP_RANGE_OPS_H
  37. #define _GAP_RANGE_OPS_H
  38.  
  39. #include "libgimp/gimp.h"
  40.  
  41. /* flatten mode bits used in gap_range_to_multilayer */
  42. #define FLAM_MERG_EXPAND    0
  43. #define FLAM_MERG_CLIP_IMG  1
  44. #define FLAM_MERG_CLIP_BG   2
  45. #define FLAM_MERG_FLAT      3
  46.  
  47. /* Animation sizechange modes */
  48. typedef enum
  49. {
  50.    ASIZ_SCALE  
  51.  , ASIZ_RESIZE 
  52.  , ASIZ_CROP   
  53. } t_gap_asiz;
  54.  
  55.  
  56.  
  57.  
  58. gint32 gap_range_to_multilayer(GimpRunModeType run_mode,
  59.                              gint32 image_id,
  60.                              long range_from, long range_to,
  61.                              long flatten_mode, long bg_visible,
  62.                              long   framerate, char  *frame_basename, int frame_basename_len,
  63.                  gint32 sel_mode, gint32 sel_case,
  64.                  gint32 sel_invert, char *sel_pattern
  65.                  );
  66.  
  67. int gap_range_flatten(GimpRunModeType run_mode,
  68.                              gint32 image_id,
  69.                              long range_from, long range_to);
  70. int gap_range_layer_del(GimpRunModeType run_mode,
  71.                              gint32 image_id,
  72.                              long range_from, long range_to, long position);
  73.  
  74. int gap_range_conv(GimpRunModeType run_mode,
  75.                              gint32 image_id,
  76.                              long   range_from, long range_to, 
  77.                              long   flatten,
  78.                              GimpImageBaseType dest_type, 
  79.                              gint32     dest_colors,
  80.                              gint32     dest_dither,
  81.                              char   *basename,
  82.                              char   *extension,
  83.                  gint32  palette_type,
  84.                  gint32  alpha_dither,
  85.                  gint32  remove_unused,
  86.                              char   *palette
  87.                  );
  88.  
  89. int gap_anim_sizechange(GimpRunModeType run_mode,
  90.                              t_gap_asiz asiz_mode,
  91.                              gint32 image_id,
  92.                              long size_x,
  93.                              long size_y,
  94.                              long offs_x,
  95.                              long offs_y);
  96.  
  97. #endif
  98.  
  99.  
  100.