xref: /plan9/sys/src/cmd/gs/src/gscolor1.h (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 1993 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: gscolor1.h,v 1.5 2002/06/16 08:45:42 lpd Exp $ */
18 /* Client interface to Level 1 extended color facilities */
19 /* Requires gscolor.h */
20 
21 #ifndef gscolor1_INCLUDED
22 #  define gscolor1_INCLUDED
23 
24 /* Color and gray interface */
25 int gs_setcmykcolor(gs_state *, floatp, floatp, floatp, floatp),
26     gs_currentcmykcolor(const gs_state *, float[4]),
27     gs_setblackgeneration(gs_state *, gs_mapping_proc),
28     gs_setblackgeneration_remap(gs_state *, gs_mapping_proc, bool);
29 gs_mapping_proc gs_currentblackgeneration(const gs_state *);
30 int gs_setundercolorremoval(gs_state *, gs_mapping_proc),
31     gs_setundercolorremoval_remap(gs_state *, gs_mapping_proc, bool);
32 gs_mapping_proc gs_currentundercolorremoval(const gs_state *);
33 
34 /* Transfer function */
35 int gs_setcolortransfer(gs_state *, gs_mapping_proc /*red */ ,
36 			gs_mapping_proc /*green */ ,
37 			gs_mapping_proc /*blue */ ,
38 			gs_mapping_proc /*gray */ ),
39     gs_setcolortransfer_remap(gs_state *, gs_mapping_proc /*red */ ,
40 			      gs_mapping_proc /*green */ ,
41 			      gs_mapping_proc /*blue */ ,
42 			      gs_mapping_proc /*gray */ , bool);
43 void gs_currentcolortransfer(const gs_state *, gs_mapping_proc[4]);
44 
45 #endif /* gscolor1_INCLUDED */
46