1 /* Copyright (C) 2004 Artifex Software Inc., artofcode LLC. 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: gsequivc.h,v 1.2 2004/06/24 05:03:36 dan Exp $ */ 18 /* Header for routines for determining equivalent color for spot colors */ 19 20 /* For more information, see comment at the start of src/gsequivc.c */ 21 22 #ifndef gsequivc_INCLUDED 23 # define gsequivc_INCLUDED 24 25 /* 26 * Structure for holding a CMYK color. 27 */ 28 typedef struct cmyk_color_s { 29 bool color_info_valid; 30 frac c; 31 frac m; 32 frac y; 33 frac k; 34 } cmyk_color; 35 36 /* 37 * Structure for holding parameters for collecting the equivalent CMYK 38 * for a spot colorant. 39 */ 40 typedef struct equivalent_cmyk_color_params_s { 41 bool all_color_info_valid; 42 cmyk_color color[GX_DEVICE_MAX_SEPARATIONS]; 43 } equivalent_cmyk_color_params; 44 45 /* If possible, update the equivalent CMYK color for a spot color */ 46 void update_spot_equivalent_cmyk_colors(gx_device * pdev, 47 const gs_state * pgs, gs_devn_params * pdevn_params, 48 equivalent_cmyk_color_params * pparams); 49 50 #endif /* define gsequivc_INCLUDED */ 51