home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gsht1.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.1 KB  |  55 lines

  1. /* Copyright (C) 1994, 1997 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gsht1.h,v 1.2 2000/09/19 19:00:29 lpd Exp $ */
  20. /* Extended public interface to halftones */
  21.  
  22. #ifndef gsht1_INCLUDED
  23. #  define gsht1_INCLUDED
  24.  
  25. #include "gsht.h"
  26.  
  27. /* Procedural interface */
  28. int gs_setcolorscreen(P2(gs_state *, gs_colorscreen_halftone *));
  29. int gs_currentcolorscreen(P2(gs_state *, gs_colorscreen_halftone *));
  30.  
  31. /*
  32.  * We include sethalftone here, even though it is a Level 2 feature,
  33.  * because it turns out to be convenient to define setcolorscreen
  34.  * using sethalftone.
  35.  */
  36. #ifndef gs_halftone_DEFINED
  37. #  define gs_halftone_DEFINED
  38. typedef struct gs_halftone_s gs_halftone;
  39.  
  40. #endif
  41. /*
  42.  * gs_halftone structures may have complex substructures.  We provide two
  43.  * procedures for setting them.  gs_halftone assumes that the gs_halftone
  44.  * structure and all its substructures was allocated with the same allocator
  45.  * as the gs_state; gs_halftone_allocated looks in the structure itself (the
  46.  * rc.memory member) to find the allocator that was used.  Both procedures
  47.  * copy the top-level structure (using the appropriate allocator), but take
  48.  * ownership of the substructures.
  49.  */
  50. int gs_sethalftone(P2(gs_state *, gs_halftone *));
  51. int gs_sethalftone_allocated(P2(gs_state *, gs_halftone *));
  52. int gs_currenthalftone(P2(gs_state *, gs_halftone *));
  53.  
  54. #endif /* gsht1_INCLUDED */
  55.