gscolor1.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* Copyright (C) 1993 Aladdin Enterprises. All rights reserved.
  2. This software is provided AS-IS with no warranty, either express or
  3. implied.
  4. This software is distributed under license and may not be copied,
  5. modified or distributed except as expressly authorized under the terms
  6. of the license contained in the file LICENSE in this distribution.
  7. For more information about licensing, please refer to
  8. http://www.ghostscript.com/licensing/. For information on
  9. commercial licensing, go to http://www.artifex.com/licensing/ or
  10. contact Artifex Software, Inc., 101 Lucas Valley Road #110,
  11. San Rafael, CA 94903, U.S.A., +1(415)492-9861.
  12. */
  13. /* $Id: gscolor1.h,v 1.5 2002/06/16 08:45:42 lpd Exp $ */
  14. /* Client interface to Level 1 extended color facilities */
  15. /* Requires gscolor.h */
  16. #ifndef gscolor1_INCLUDED
  17. # define gscolor1_INCLUDED
  18. /* Color and gray interface */
  19. int gs_setcmykcolor(gs_state *, floatp, floatp, floatp, floatp),
  20. gs_currentcmykcolor(const gs_state *, float[4]),
  21. gs_setblackgeneration(gs_state *, gs_mapping_proc),
  22. gs_setblackgeneration_remap(gs_state *, gs_mapping_proc, bool);
  23. gs_mapping_proc gs_currentblackgeneration(const gs_state *);
  24. int gs_setundercolorremoval(gs_state *, gs_mapping_proc),
  25. gs_setundercolorremoval_remap(gs_state *, gs_mapping_proc, bool);
  26. gs_mapping_proc gs_currentundercolorremoval(const gs_state *);
  27. /* Transfer function */
  28. int gs_setcolortransfer(gs_state *, gs_mapping_proc /*red */ ,
  29. gs_mapping_proc /*green */ ,
  30. gs_mapping_proc /*blue */ ,
  31. gs_mapping_proc /*gray */ ),
  32. gs_setcolortransfer_remap(gs_state *, gs_mapping_proc /*red */ ,
  33. gs_mapping_proc /*green */ ,
  34. gs_mapping_proc /*blue */ ,
  35. gs_mapping_proc /*gray */ , bool);
  36. void gs_currentcolortransfer(const gs_state *, gs_mapping_proc[4]);
  37. #endif /* gscolor1_INCLUDED */