home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / app / bucket_fill.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-12-17  |  1.7 KB  |  56 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.  
  19. #ifndef  __BUCKET_FILL_H__
  20. #define  __BUCKET_FILL_H__
  21.  
  22. #include "tools.h"
  23.  
  24.  
  25. typedef enum
  26. {
  27.   FG_BUCKET_FILL,
  28.   BG_BUCKET_FILL,
  29.   PATTERN_BUCKET_FILL
  30. } BucketFillMode;
  31.  
  32. void        bucket_fill        (GimpImage      *gimage,
  33.                 GimpDrawable   *drawable,
  34.                 BucketFillMode  fill_mode,
  35.                 gint            paint_mode,
  36.                 gdouble         opacity,
  37.                 gdouble         threshold,
  38.                 gboolean        sample_merged,
  39.                 gdouble         x,
  40.                 gdouble         y);
  41.  
  42. void        bucket_fill_region (BucketFillMode  fill_mode,
  43.                 PixelRegion    *bufPR,
  44.                 PixelRegion    *maskPR,
  45.                 guchar         *col,
  46.                 TempBuf        *pattern,
  47.                 gint            off_x,
  48.                 gint            off_y,
  49.                 gboolean        has_alpha);
  50.  
  51. Tool *      tools_new_bucket_fill   (void);
  52. void        tools_free_bucket_fill  (Tool *tool);
  53.  
  54.  
  55. #endif  /*  __BUCKET_FILL_H__  */
  56.