11
11
San Rafael, CA 94903, U.S.A., +1(415)492-9861, for further information.
14
/* $Id: gsdevice.h 8337 2007-10-31 17:00:51Z giles $ */
15
15
/* Device and page control API */
17
17
#ifndef gsdevice_INCLUDED
51
51
* copydevice is equivalent to copydevice2 with keep_open = false.
53
53
int gs_copydevice2(gx_device **pnew_dev, const gx_device *dev,
54
bool keep_open, gs_memory_t *mem);
54
bool keep_open, gs_memory_t *mem);
56
56
#define gs_makeimagedevice(pdev, pmat, w, h, colors, colors_size, mem)\
57
57
gs_makewordimagedevice(pdev, pmat, w, h, colors, colors_size, false, true, mem)
58
58
int gs_makewordimagedevice(gx_device ** pnew_dev, const gs_matrix * pmat,
59
uint width, uint height,
60
const byte * colors, int num_colors,
61
bool word_oriented, bool page_device,
59
uint width, uint height,
60
const byte * colors, int num_colors,
61
bool word_oriented, bool page_device,
64
64
#define gs_initialize_imagedevice(mdev, pmat, w, h, colors, colors_size, mem)\
65
65
gs_initialize_wordimagedevice(mdev, pmat, w, h, colors, color_size, false, true, mem)
66
66
int gs_initialize_wordimagedevice(gx_device_memory * new_dev,
67
const gs_matrix * pmat,
68
uint width, uint height,
69
const byte * colors, int colors_size,
70
bool word_oriented, bool page_device,
67
const gs_matrix * pmat,
68
uint width, uint height,
69
const byte * colors, int colors_size,
70
bool word_oriented, bool page_device,
72
72
const char *gs_devicename(const gx_device *);
73
73
void gs_deviceinitialmatrix(gx_device *, gs_matrix *);
107
107
int gs_nulldevice(gs_state *);
108
108
int gs_setdevice(gs_state *, gx_device *);
109
109
int gs_setdevice_no_erase(gs_state *, gx_device *); /* returns 1 */
110
/* if erasepage required */
110
/* if erasepage required */
111
111
int gs_setdevice_no_init(gs_state *, gx_device *);
112
112
gx_device *gs_currentdevice(const gs_state *);