From 43522c5f2a12dc0cf3cda733e4fb5c04cd62a154 Mon Sep 17 00:00:00 2001 From: scuri Date: Wed, 19 Aug 2009 18:39:31 +0000 Subject: *** empty log message *** --- src/im_file.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/im_file.cpp') diff --git a/src/im_file.cpp b/src/im_file.cpp index 81e0e1b..5cfe49d 100644 --- a/src/im_file.cpp +++ b/src/im_file.cpp @@ -2,7 +2,7 @@ * \brief File Access * * See Copyright Notice in im_lib.h - * $Id: im_file.cpp,v 1.3 2009/08/13 22:34:25 scuri Exp $ + * $Id: im_file.cpp,v 1.4 2009/08/19 18:39:43 scuri Exp $ */ #include @@ -56,6 +56,9 @@ imFile* imFileOpen(const char* file_name, int *error) imFileClear(ifileformat); ifileformat->attrib_table = new imAttribTable(599); + imFileSetAttribute(ifileformat, "FileFormat", IM_BYTE, -1, ifileformat->iformat->format); + imFileSetAttribute(ifileformat, "FileCompression", IM_BYTE, -1, ifileformat->compression); + imFileSetAttribute(ifileformat, "FileImageCount", IM_INT, 1, &ifileformat->image_count); ifileformat->counter = imCounterBegin(file_name); @@ -73,6 +76,9 @@ imFile* imFileOpenAs(const char* file_name, const char* format, int *error) imFileClear(ifileformat); ifileformat->attrib_table = new imAttribTable(599); + imFileSetAttribute(ifileformat, "FileFormat", IM_BYTE, -1, ifileformat->iformat->format); + imFileSetAttribute(ifileformat, "FileCompression", IM_BYTE, -1, ifileformat->compression); + imFileSetAttribute(ifileformat, "FileImageCount", IM_INT, 1, &ifileformat->image_count); ifileformat->counter = imCounterBegin(file_name); -- cgit v1.2.3