1 /* Copyright (C) 1995, 1996 artofcode LLC. All rights reserved. 2 3 This program is free software; you can redistribute it and/or modify it 4 under the terms of the GNU General Public License as published by the 5 Free Software Foundation; either version 2 of the License, or (at your 6 option) any later version. 7 8 This program is distributed in the hope that it will be useful, but 9 WITHOUT ANY WARRANTY; without even the implied warranty of 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 General Public License for more details. 12 13 You should have received a copy of the GNU General Public License along 14 with this program; if not, write to the Free Software Foundation, Inc., 15 59 Temple Place, Suite 330, Boston, MA, 02111-1307. 16 17 */ 18 19 /*$Id: gxhttile.h,v 1.2.6.1.2.1 2003/01/17 00:49:03 giles Exp $ */ 20 /* Halftone tile definition */ 21 /* Requires gxbitmap.h */ 22 23 #ifndef gxhttile_INCLUDED 24 # define gxhttile_INCLUDED 25 26 /* 27 * A halftone tile is just an ordinary bitmap tile, plus a couple of other 28 * items associated with managing its existence in a tile cache. 29 * (See gzht.h for details.) We define this in its own file so that 30 * clients of gx_device_color can access it. 31 */ 32 33 #ifndef gx_ht_tile_DEFINED 34 # define gx_ht_tile_DEFINED 35 typedef struct gx_ht_tile_s gx_ht_tile; 36 37 #endif 38 39 struct gx_ht_tile_s { 40 gx_strip_bitmap tiles; /* the currently rendered tile */ 41 int level; /* the cached gray level, i.e. */ 42 /* the number of spots whitened, */ 43 /* or -1 if the cache is empty */ 44 uint index; /* the index of the tile within */ 45 /* the cache (for GC) */ 46 }; 47 48 #endif /* gxhttile_INCLUDED */ 49