home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 February / PCWK0296.iso / sharewar / dos / program / gs300sr1 / gs300sr1.exe / GSIMAGE.H < prev    next >
Text File  |  1994-07-27  |  2KB  |  40 lines

  1. /* Copyright (C) 1992, 1994 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of Aladdin Ghostscript.
  4.   
  5.   Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  6.   or distributor accepts any responsibility for the consequences of using it,
  7.   or for whether it serves any particular purpose or works at all, unless he
  8.   or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  9.   License (the "License") for full details.
  10.   
  11.   Every copy of Aladdin Ghostscript must include a copy of the License,
  12.   normally in a plain ASCII text file named PUBLIC.  The License grants you
  13.   the right to copy, modify and redistribute Aladdin Ghostscript, but only
  14.   under certain conditions described in the License.  Among other things, the
  15.   License requires that the copyright notice and this notice be preserved on
  16.   all copies.
  17. */
  18.  
  19. /* gsimage.h */
  20. /* Client interface to image painting */
  21. /* Requires gscspace.h, gsstate.h, and gsmatrix.h */
  22.  
  23. /* The image painting interface uses an enumeration style: */
  24. /* the client initializes an enumerator, then supplies data incrementally. */
  25. typedef struct gs_image_enum_s gs_image_enum;
  26. gs_image_enum *    gs_image_enum_alloc(P2(gs_memory_t *, client_name_t));
  27. /* image_init and imagemask_init return 1 for an empty image, */
  28. /* 0 normally, <0 on error. */
  29. int    gs_image_init(P9(gs_image_enum *penum, gs_state *pgs,
  30.              int width, int height, int bits_per_component,
  31.              bool multi, const gs_color_space *pcs,
  32.              const float *decode, gs_matrix *pmat));
  33. int    gs_imagemask_init(P7(gs_image_enum *penum, gs_state *pgs,
  34.                  int width, int height, bool invert,
  35.                  gs_matrix *pmat, bool adjust));
  36. int    gs_image_next(P4(gs_image_enum *penum, const byte *dbytes,
  37.              uint dsize, uint *pused));
  38. /* Clean up after processing an image. */
  39. void    gs_image_cleanup(P1(gs_image_enum *penum));
  40.