gxhttile.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved.
  2. This file is part of AFPL Ghostscript.
  3. AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or
  4. distributor accepts any responsibility for the consequences of using it, or
  5. for whether it serves any particular purpose or works at all, unless he or
  6. she says so in writing. Refer to the Aladdin Free Public License (the
  7. "License") for full details.
  8. Every copy of AFPL Ghostscript must include a copy of the License, normally
  9. in a plain ASCII text file named PUBLIC. The License grants you the right
  10. to copy, modify and redistribute AFPL Ghostscript, but only under certain
  11. conditions described in the License. Among other things, the License
  12. requires that the copyright notice and this notice be preserved on all
  13. copies.
  14. */
  15. /*$Id: gxhttile.h,v 1.2 2000/09/19 19:00:37 lpd Exp $ */
  16. /* Halftone tile definition */
  17. /* Requires gxbitmap.h */
  18. #ifndef gxhttile_INCLUDED
  19. # define gxhttile_INCLUDED
  20. /*
  21. * A halftone tile is just an ordinary bitmap tile, plus a couple of other
  22. * items associated with managing its existence in a tile cache.
  23. * (See gzht.h for details.) We define this in its own file so that
  24. * clients of gx_device_color can access it.
  25. */
  26. #ifndef gx_ht_tile_DEFINED
  27. # define gx_ht_tile_DEFINED
  28. typedef struct gx_ht_tile_s gx_ht_tile;
  29. #endif
  30. struct gx_ht_tile_s {
  31. gx_strip_bitmap tiles; /* the currently rendered tile */
  32. int level; /* the cached gray level, i.e. */
  33. /* the number of spots whitened, */
  34. /* or -1 if the cache is empty */
  35. uint index; /* the index of the tile within */
  36. /* the cache (for GC) */
  37. };
  38. #endif /* gxhttile_INCLUDED */