xref: /plan9/sys/src/cmd/gs/src/gscolor.h (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 1991, 2000 Aladdin Enterprises.  All rights reserved.
2 
3   This software is provided AS-IS with no warranty, either express or
4   implied.
5 
6   This software is distributed under license and may not be copied,
7   modified or distributed except as expressly authorized under the terms
8   of the license contained in the file LICENSE in this distribution.
9 
10   For more information about licensing, please refer to
11   http://www.ghostscript.com/licensing/. For information on
12   commercial licensing, go to http://www.artifex.com/licensing/ or
13   contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14   San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15 */
16 
17 /* $Id: gscolor.h,v 1.6 2002/06/16 08:45:42 lpd Exp $ */
18 /* Client interface to color routines */
19 
20 #ifndef gscolor_INCLUDED
21 #  define gscolor_INCLUDED
22 
23 #include "gxtmap.h"
24 
25 /* Color and gray interface */
26 int gs_setgray(gs_state *, floatp);
27 int gs_currentgray(const gs_state *, float *);
28 int gs_setrgbcolor(gs_state *, floatp, floatp, floatp);
29 int gs_currentrgbcolor(const gs_state *, float[3]);
30 int gs_setnullcolor(gs_state *);
31 
32 /* Transfer function */
33 int gs_settransfer(gs_state *, gs_mapping_proc);
34 int gs_settransfer_remap(gs_state *, gs_mapping_proc, bool);
35 gs_mapping_proc gs_currenttransfer(const gs_state *);
36 
37 #endif /* gscolor_INCLUDED */
38