1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
/* Copyright (C) 2001-2006 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
implied.
This software is distributed under license and may not be copied, modified
or distributed except as expressly authorized under the terms of that
license. Refer to licensing information at http://www.artifex.com/
or contact Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134,
San Rafael, CA 94903, U.S.A., +1(415)492-9861, for further information.
*/
/* $Id$ */
/* geneic overprint fill rectangle interface */
#ifndef gxoprect_INCLUDED
#define gxoprect_INCLUDED
/*
* Perform the fill rectangle operation for a non-separable color encoding
* that requires overprint support.
*
* Returns 0 on success, < 0 in the event of an error.
*/
extern int gx_overprint_generic_fill_rectangle(
gx_device * tdev,
gx_color_index drawn_comps,
int x,
int y,
int w,
int h,
gx_color_index color,
gs_memory_t * mem );
/*
* Perform the fill rectangle operation of a separable color encoding.
* There are two versions of this routine: ..._1 for cases in which the
* color depth is a divisor of 8 * sizeof(mono_fill_chunk), and ..._2 if
* this is not the case (most typically if the depth == 24).
*
* For both cases, the color and retain_mask values passed to this
* procedure are expected to be already swapped as required for a byte-
* oriented bitmap. This consideration affects only little-endian
* machines. For those machines, if depth > 9 the color passed to these
* two procedures will not be the same as that passed to
* gx_overprint_generic_fill_rectangle.
*
* Returns 0 on success, < 0 in the event of an error.
*/
extern int gx_overprint_sep_fill_rectangle_1(
gx_device * tdev,
gx_color_index retain_mask, /* already swapped */
int x,
int y,
int w,
int h,
gx_color_index color, /* already swapped */
gs_memory_t * mem );
extern int gx_overprint_sep_fill_rectangle_2(
gx_device * tdev,
gx_color_index retain_mask, /* already swapped */
int x,
int y,
int w,
int h,
gx_color_index color, /* already swapped */
gs_memory_t * mem );
#endif /* gxoprect_INCLUDED */
|