home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / app / image_render.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-12  |  1.6 KB  |  57 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 __IMAGE_RENDER_H__
  19. #define __IMAGE_RENDER_H__
  20.  
  21. #include "gdisplay.h"
  22.  
  23. /*  Transparency representation  */
  24.  
  25. #define LIGHT_CHECKS    0
  26. #define GRAY_CHECKS     1
  27. #define DARK_CHECKS     2
  28. #define WHITE_ONLY      3
  29. #define GRAY_ONLY       4
  30. #define BLACK_ONLY      5
  31.  
  32. #define SMALL_CHECKS    0
  33. #define MEDIUM_CHECKS   1
  34. #define LARGE_CHECKS    2
  35.  
  36. /*  Functions  */
  37. void render_setup (int check_type,
  38.            int check_size);
  39. void render_free  (void);
  40. void render_image (GDisplay *gdisp,
  41.            int       x,
  42.            int       y,
  43.            int       w,
  44.            int       h);
  45.  
  46. /*
  47.  *  Extern variables
  48.  */
  49. extern guchar *check_buf;
  50. extern guchar *empty_buf;
  51. extern guchar *temp_buf;
  52. extern guchar *blend_dark_check;
  53. extern guchar *blend_light_check;
  54.  
  55.  
  56. #endif  /*  __IMAGE_RENDER_H__  */
  57.