1 /* ptstiff3.h -- reads (smartly) and writes TIFF files using libtiff 2 * by pts@fazekas.hu at Sun Sep 29 22:43:55 CEST 2002 3 */ 4 5 #ifndef PTSTIFF3_H 6 #define PTSTIFF3_H 7 8 #if defined(__GNUC__) && defined(__cplusplus) 9 #pragma interface 10 #endif 11 12 #include "miniglib.h" 13 /* #include "minigimp.h" */ /* not required */ 14 15 #if PTS_USE_STATIC 16 # define SAVE_ARGS 17 #else 18 # define SAVE_ARGS , gushort compression, gchar *image_comment 19 #endif 20 21 /** @return image descriptor */ 22 EXTERN_C gint32 ptstiff3_load_image (gchar const*filename, gbool headerdump_p); 23 /** 24 * @param filename !=NULL 25 * @return 0 on error (printed with g_message(), g_logv(...)), 1 on success 26 */ 27 EXTERN_C gint ptstiff3_save_image (gchar const*filename, 28 gint32 image, 29 gint32 drawable_layer, 30 gint32 orig_image SAVE_ARGS); 31 32 #endif /* end of ptstiff3.h */ 33