home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / app / gimage_mask.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-03-26  |  3.6 KB  |  99 lines

  1. /* The GIMP -- an image manipulation program
  2.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  3.  *
  4.  * This program is free software; you can redistribute it and/or modify
  5.  * it under the terms of the GNU General Public License as published by
  6.  * the Free Software Foundation; either version 2 of the License, or
  7.  * (at your option) any later version.
  8.  *
  9.  * This program is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.  * GNU General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU General Public License
  15.  * along with this program; if not, write to the Free Software
  16.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17.  */
  18. #ifndef __GIMAGE_MASK_H__
  19. #define __GIMAGE_MASK_H__
  20.  
  21. #include "boundary.h"
  22. #include "gimage.h"
  23.  
  24. /*  mask functions  */
  25. gboolean        gimage_mask_boundary      (GImage       *gimage,
  26.                        BoundSeg    **segs_in,
  27.                        BoundSeg    **segs_out,
  28.                        gint         *num_segs_in,
  29.                        gint         *num_segs_out);
  30.  
  31. gboolean        gimage_mask_bounds        (GImage       *gimage,
  32.                        gint         *x1,
  33.                        gint         *y1,
  34.                        gint         *x2,
  35.                        gint         *y2);
  36.  
  37. void            gimage_mask_invalidate    (GImage       *gimage);
  38.  
  39. gint            gimage_mask_value         (GImage       *gimage,
  40.                        gint          x,
  41.                        gint          y);
  42.  
  43. gboolean        gimage_mask_is_empty      (GImage       *gimage);
  44.  
  45. void            gimage_mask_translate     (GImage       *gimage,
  46.                        gint          off_x,
  47.                        gint          off_y);
  48.  
  49. TileManager *   gimage_mask_extract       (GImage       *gimage,
  50.                        GimpDrawable *drawable,
  51.                        gboolean      cut_gimage,
  52.                        gboolean      keep_indexed,
  53.                        gboolean      add_alpha);
  54.  
  55. Layer *         gimage_mask_float         (GImage       *gimage,
  56.                        GimpDrawable *drawable,
  57.                        gint          off_x,
  58.                        gint          off_y);
  59.  
  60. void            gimage_mask_clear         (GImage       *gimage);
  61. void            gimage_mask_undo          (GImage       *gimage);
  62. void            gimage_mask_invert        (GImage       *gimage);
  63. void            gimage_mask_sharpen       (GImage       *gimage);
  64. void            gimage_mask_all           (GImage       *gimage);
  65. void            gimage_mask_none          (GImage       *gimage);
  66.  
  67. void            gimage_mask_feather       (GImage       *gimage,
  68.                        gdouble       feather_radius_x,
  69.                        gdouble       feather_radius_y);
  70.  
  71. void            gimage_mask_border        (GImage       *gimage,
  72.                        gint          border_radius_x,
  73.                        gint          border_radius_y);
  74.  
  75. void            gimage_mask_grow          (GImage       *gimage,
  76.                        gint           grow_pixels_x,
  77.                        gint           grow_pixels_y);
  78.  
  79. void            gimage_mask_shrink        (GImage       *gimage,
  80.                        gint          shrink_pixels_x,
  81.                        gint          shrink_pixels_y,
  82.                        gboolean      edge_lock);
  83.  
  84. void            gimage_mask_layer_alpha   (GImage       *gimage,
  85.                        Layer        *layer);
  86.  
  87. void            gimage_mask_layer_mask    (GImage       *gimage,
  88.                        Layer        *layer);
  89.  
  90. void            gimage_mask_load          (GImage       *gimage,
  91.                        Channel      *channel);
  92.  
  93. Channel *       gimage_mask_save          (GImage       *gimage);
  94.  
  95. gboolean        gimage_mask_stroke        (GImage       *gimage,
  96.                        GimpDrawable *drawable);
  97.  
  98. #endif  /*  __GIMAGE_MASK_H__  */
  99.