1
/* Copyright (C) 2001-2006 Artifex Software, Inc.
4
This software is provided AS-IS with no warranty, either express or
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.
14
/* $Id: gxoprect.h 8022 2007-06-05 22:23:38Z giles $ */
15
/* geneic overprint fill rectangle interface */
17
#ifndef gxoprect_INCLUDED
18
#define gxoprect_INCLUDED
21
* Perform the fill rectangle operation for a non-separable color encoding
22
* that requires overprint support.
24
* Returns 0 on success, < 0 in the event of an error.
26
extern int gx_overprint_generic_fill_rectangle(
28
gx_color_index drawn_comps,
37
* Perform the fill rectangle operation of a separable color encoding.
38
* There are two versions of this routine: ..._1 for cases in which the
39
* color depth is a divisor of 8 * sizeof(mono_fill_chunk), and ..._2 if
40
* this is not the case (most typically if the depth == 24).
42
* For both cases, the color and retain_mask values passed to this
43
* procedure are expected to be already swapped as required for a byte-
44
* oriented bitmap. This consideration affects only little-endian
45
* machines. For those machines, if depth > 9 the color passed to these
46
* two procedures will not be the same as that passed to
47
* gx_overprint_generic_fill_rectangle.
49
* Returns 0 on success, < 0 in the event of an error.
51
extern int gx_overprint_sep_fill_rectangle_1(
53
gx_color_index retain_mask, /* already swapped */
58
gx_color_index color, /* already swapped */
61
extern int gx_overprint_sep_fill_rectangle_2(
63
gx_color_index retain_mask, /* already swapped */
68
gx_color_index color, /* already swapped */
71
#endif /* gxoprect_INCLUDED */