core/vil/vil_save.h
Go to the documentation of this file.
00001 // This is core/vil/vil_save.h
00002 #ifndef vil_save_h_
00003 #define vil_save_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007 //:
00008 // \file
00009 // \author    Ian Scott
00010 
00011 #include <vil/vil_fwd.h>
00012 #include <vcl_compiler.h>
00013 #include <vxl_config.h>
00014 
00015 //: Send a vil_image_view to disk, deducing format from filename
00016 // \relatesalso vil_image_view
00017 bool vil_save(const vil_image_view_base &, char const* filename);
00018 
00019 //: Send a vil_image_view to disk, given filename
00020 // \relatesalso vil_image_view
00021 bool vil_save(const vil_image_view_base &, char const* filename, char const* file_format);
00022 
00023 //: Send vil_image_resource to disk.
00024 // \relatesalso vil_image_resource
00025 bool vil_save_image_resource(const vil_image_resource_sptr &ir, char const* filename,
00026                              char const* file_format);
00027 
00028 //: Save vil_image_resource to file, deducing format from filename.
00029 // \relatesalso vil_image_resource
00030 bool vil_save_image_resource(const vil_image_resource_sptr &ir, char const* filename);
00031 
00032 //: Given a filename, guess the file format tag
00033 // The returned pointer may point into the filename string - so keep it valid.
00034 char const *vil_save_guess_file_format(char const* filename);
00035 
00036 
00037 #if defined(VCL_WIN32) && VXL_USE_WIN_WCHAR_T
00038 //: Send a vil_image_view to disk, deducing format from filename
00039 // \relatesalso vil_image_view
00040 bool vil_save(const vil_image_view_base &, wchar_t const* filename);
00041 
00042 //: Send a vil_image_view to disk, given filename
00043 // \relatesalso vil_image_view
00044 bool vil_save(const vil_image_view_base &, wchar_t const* filename, wchar_t const* file_format);
00045 
00046 //: Send vil_image_resource to disk.
00047 // \relatesalso vil_image_resource
00048 bool vil_save_image_resource(const vil_image_resource_sptr &ir, wchar_t const* filename,
00049                              wchar_t const* file_format);
00050 
00051 //: Save vil_image_resource to file, deducing format from filename.
00052 // \relatesalso vil_image_resource
00053 bool vil_save_image_resource(const vil_image_resource_sptr &ir, wchar_t const* filename);
00054 
00055 //: Given a filename, guess the file format tag
00056 // The returned pointer may point into the filename string - so keep it valid.
00057 wchar_t const *vil_save_guess_file_format(wchar_t const* filename);
00058 #endif //defined(VCL_WIN32) && VXL_USE_WIN_WCHAR_T
00059 
00060 #endif // vil_save_h_