2 |
- |
1 |
/* Copyright (C) 1997, 1998 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: gsiparm2.h,v 1.5 2002/06/16 08:45:42 lpd Exp $ */
|
|
|
18 |
/* ImageType 2 image parameter definition */
|
|
|
19 |
|
|
|
20 |
#ifndef gsiparm2_INCLUDED
|
|
|
21 |
# define gsiparm2_INCLUDED
|
|
|
22 |
|
|
|
23 |
#include "gsiparam.h"
|
|
|
24 |
|
|
|
25 |
/* Opaque type for a path */
|
|
|
26 |
#ifndef gx_path_DEFINED
|
|
|
27 |
# define gx_path_DEFINED
|
|
|
28 |
typedef struct gx_path_s gx_path;
|
|
|
29 |
#endif
|
|
|
30 |
|
|
|
31 |
/*
|
|
|
32 |
* See Section 7.1 of the Adobe PostScript Version 3010 Supplement
|
|
|
33 |
* for a definition of ImageType 2 images.
|
|
|
34 |
*/
|
|
|
35 |
|
|
|
36 |
typedef struct gs_image2_s {
|
|
|
37 |
gs_image_common;
|
|
|
38 |
gs_state *DataSource;
|
|
|
39 |
float XOrigin, YOrigin;
|
|
|
40 |
float Width, Height;
|
|
|
41 |
/*
|
|
|
42 |
* If UnpaintedPath is not 0, any unpainted path will be appended to it.
|
|
|
43 |
*/
|
|
|
44 |
gx_path *UnpaintedPath;
|
|
|
45 |
bool PixelCopy;
|
|
|
46 |
} gs_image2_t;
|
|
|
47 |
#define private_st_gs_image2() /* in gximage2.c */\
|
|
|
48 |
extern_st(st_gs_image_common);\
|
|
|
49 |
gs_private_st_suffix_add2(st_gs_image2, gs_image2_t, "gs_image2_t",\
|
|
|
50 |
image2_enum_ptrs, image2_reloc_ptrs, st_gs_image_common,\
|
|
|
51 |
DataSource, UnpaintedPath)
|
|
|
52 |
|
|
|
53 |
/*
|
|
|
54 |
* Initialize an ImageType 2 image. Defaults:
|
|
|
55 |
* UnpaintedPath = 0
|
|
|
56 |
* PixelCopy = false
|
|
|
57 |
*/
|
|
|
58 |
void gs_image2_t_init(gs_image2_t * pim);
|
|
|
59 |
|
|
|
60 |
#endif /* gsiparm2_INCLUDED */
|