1 /* 2 * colors.h (C) 2006-2008, Aurélien Croc (AP²C) 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; version 2 of the License. 7 * 8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public License 14 * along with this program; if not, write to the 15 * Free Software Foundation, Inc., 16 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 * 18 * $Id$ 19 * 20 */ 21 #ifndef _COLORS_H_ 22 #define _COLORS_H_ 23 24 #ifndef DISABLE_BLACKOPTIM 25 26 class Page; 27 28 /** 29 * Optimize the black channel. 30 * Transform red, green and cyan dots in a black dot and remove red, green or 31 * cyan dot if a black dot is present. 32 */ 33 extern void applyBlackOptimization(Page* page); 34 35 #endif /* DISABLE_BLACKOPTIM */ 36 #endif /* _COLORS_H_ */ 37 38 /* vim: set expandtab tabstop=4 shiftwidth=4 smarttab tw=80 cin enc=utf8: */ 39 40