1 /* Copyright (C) 2001-2006 Artifex Software, Inc. 2 All Rights Reserved. 3 4 This software is provided AS-IS with no warranty, either express or 5 implied. 6 7 This software is distributed under license and may not be copied, modified 8 or distributed except as expressly authorized under the terms of that 9 license. Refer to licensing information at http://www.artifex.com/ 10 or contact Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134, 11 San Rafael, CA 94903, U.S.A., +1(415)492-9861, for further information. 12 */ 13 14 /* $Id: gsrop.h 8022 2007-06-05 22:23:38Z giles $ */ 15 /* RasterOp / transparency procedure interface */ 16 17 #ifndef gsrop_INCLUDED 18 # define gsrop_INCLUDED 19 20 #include "gsropt.h" 21 22 /* Procedural interface */ 23 24 int gs_setrasterop(gs_state *, gs_rop3_t); 25 gs_rop3_t gs_currentrasterop(const gs_state *); 26 int gs_setsourcetransparent(gs_state *, bool); 27 bool gs_currentsourcetransparent(const gs_state *); 28 int gs_settexturetransparent(gs_state *, bool); 29 bool gs_currenttexturetransparent(const gs_state *); 30 31 /* Save/restore the combined logical operation. */ 32 gs_logical_operation_t gs_current_logical_op(const gs_state *); 33 int gs_set_logical_op(gs_state *, gs_logical_operation_t); 34 35 #endif /* gsrop_INCLUDED */ 36