1 /* 2 * imagesource_gs.h 3 * 24-bit RGB and 8-bit Greyscale Loader for PS / PDF 4 * Delegates actual loading to ImageSource_TIFF 5 * 6 * Copyright (c) 2005 by Alastair M. Robinson 7 * Distributed under the terms of the GNU General Public License - 8 * see the file named "COPYING" for more details. 9 * 10 */ 11 12 #ifndef IMAGESOURCE_GS_H 13 #define IMAGESOURCE_GS_H 14 15 #define IMAGESOURCE_GS_DEFAULT_RESOLUTION 360 16 17 #include "imagesource.h" 18 #include "imagesource_tiff.h" 19 #include <fstream> 20 21 using namespace std; 22 23 class ImageSource_GS : public ImageSource 24 { 25 public: 26 ImageSource_GS(const char *filename,int resolution); 27 ~ImageSource_GS(); 28 ISDataType *GetRow(int row); 29 private: 30 char *tiffname; 31 ImageSource *source; 32 }; 33 34 #endif 35