gscolor.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Copyright (C) 1991, 2000 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: gscolor.h,v 1.6 2002/06/16 08:45:42 lpd Exp $ */
  14. /* Client interface to color routines */
  15. #ifndef gscolor_INCLUDED
  16. # define gscolor_INCLUDED
  17. #include "gxtmap.h"
  18. /* Color and gray interface */
  19. int gs_setgray(gs_state *, floatp);
  20. int gs_currentgray(const gs_state *, float *);
  21. int gs_setrgbcolor(gs_state *, floatp, floatp, floatp);
  22. int gs_currentrgbcolor(const gs_state *, float[3]);
  23. int gs_setnullcolor(gs_state *);
  24. /* Transfer function */
  25. int gs_settransfer(gs_state *, gs_mapping_proc);
  26. int gs_settransfer_remap(gs_state *, gs_mapping_proc, bool);
  27. gs_mapping_proc gs_currenttransfer(const gs_state *);
  28. #endif /* gscolor_INCLUDED */