home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / app / convert.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-12-17  |  1.8 KB  |  66 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 __CONVERT_H__
  20. #define __CONVERT_H__
  21.  
  22. #include "procedural_db.h"
  23. #include "palette_entries.h"
  24.  
  25.  
  26. /* adam's extra palette stuff */
  27. typedef enum
  28. {
  29.   MAKE_PALETTE   = 0,
  30.   REUSE_PALETTE  = 1,
  31.   WEB_PALETTE    = 2,
  32.   MONO_PALETTE   = 3,
  33.   CUSTOM_PALETTE = 4
  34. } ConvertPaletteType;
  35.  
  36. /* adam's extra dither stuff */
  37. typedef enum
  38. {
  39.   NO_DITHER         = 0,
  40.   FS_DITHER         = 1,
  41.   FSLOWBLEED_DITHER = 2,
  42.   FIXED_DITHER      = 3,
  43.  
  44.   NODESTRUCT_DITHER = 4 /* NEVER USE NODESTRUCT_DITHER EXPLICITLY */
  45. } ConvertDitherType;
  46.  
  47. #define MAXNUMCOLORS 256
  48.  
  49. /*  convert functions  */
  50. void convert_to_rgb        (GimpImage *);
  51. void convert_to_grayscale  (GimpImage *);
  52. void convert_to_indexed    (GimpImage *);
  53.  
  54. void convert_image        (GimpImage *,
  55.                GimpImageBaseType,
  56.                gint num_cols,
  57.                ConvertDitherType,
  58.                gint alpha_dither,
  59.                gint remdups,
  60.                ConvertPaletteType);
  61.  
  62. extern PaletteEntries *theCustomPalette;
  63.  
  64.  
  65. #endif  /*  __CONVERT_H__  */
  66.