| /* Copyright (C) 1989, 1990 Aladdin Enterprises. All rights reserved. |
| Distributed by Free Software Foundation, Inc. |
| |
| This file is part of Ghostscript. |
| |
| Ghostscript is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY. No author or distributor accepts responsibility |
| to anyone for the consequences of using it or for whether it serves any |
| particular purpose or works at all, unless he says so in writing. Refer |
| to the Ghostscript General Public License for full details. |
| |
| Everyone is granted permission to copy, modify and redistribute |
| Ghostscript, but only under the conditions described in the Ghostscript |
| General Public License. A copy of this license is supposed to have been |
| given to you along with Ghostscript so you can know your rights and |
| responsibilities. It should be in a file named COPYING. Among other |
| things, the copyright notice and this notice must be preserved on all |
| copies. */ |
| |
| /* gspaint.h */ |
| /* Painting interface for GhostScript library */ |
| /* Requires gsstate.h and gsmatrix.h */ |
| |
| /* Painting */ |
| int gs_erasepage(P1(gs_state *)), |
| gs_fill(P1(gs_state *)), |
| gs_eofill(P1(gs_state *)), |
| gs_stroke(P1(gs_state *)); |
| |
| /* Image painting */ |
| int gs_colorimage(P7(gs_state *, int, int, int, int, gs_matrix *, byte *)), |
| gs_image(P6(gs_state *, int, int, int, gs_matrix *, byte *)), |
| gs_imagemask(P6(gs_state *, int, int, int, gs_matrix *, byte *)); |
| /* Enumeration-style image painting */ |
| typedef struct gs_image_enum_s gs_image_enum; |
| extern int gs_image_enum_sizeof; |
| int gs_image_init(P7(gs_image_enum *, gs_state *, int, int, int, int, gs_matrix *)), |
| gs_imagemask_init(P6(gs_image_enum *, gs_state *, int, int, int, gs_matrix *)), |
| gs_image_next(P3(gs_image_enum *, byte *, uint)); |