1 /* Copyright (C) 1992, 1993, 1997 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: gxdcconv.h,v 1.5 2002/06/16 08:45:43 lpd Exp $ */ 18 /* Internal device color conversion interfaces */ 19 20 #ifndef gxdcconv_INCLUDED 21 # define gxdcconv_INCLUDED 22 23 #include "gxfrac.h" 24 25 /* Color space conversion routines */ 26 frac color_rgb_to_gray(frac r, frac g, frac b, 27 const gs_imager_state * pis); 28 void color_rgb_to_cmyk(frac r, frac g, frac b, 29 const gs_imager_state * pis, frac cmyk[4]); 30 frac color_cmyk_to_gray(frac c, frac m, frac y, frac k, 31 const gs_imager_state * pis); 32 void color_cmyk_to_rgb(frac c, frac m, frac y, frac k, 33 const gs_imager_state * pis, frac rgb[3]); 34 35 #endif /* gxdcconv_INCLUDED */ 36