diff options
author | scuri <scuri> | 2009-08-19 18:39:31 +0000 |
---|---|---|
committer | scuri <scuri> | 2009-08-19 18:39:31 +0000 |
commit | 43522c5f2a12dc0cf3cda733e4fb5c04cd62a154 (patch) | |
tree | 898c6d10776a5e8e50dc93c7c51d334e5bc79cb3 /src/im_file.cpp | |
parent | 40b9c00bf632734a5871c78d58c7661f1b0988a0 (diff) |
*** empty log message ***
Diffstat (limited to 'src/im_file.cpp')
-rw-r--r-- | src/im_file.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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 <stdlib.h> @@ -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); |