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 <vxl_config.h>
00013 
00014 //: Send a vil_image_view to disk, deducing format from filename
00015 // \relatesalso vil_image_view
00016 bool vil_save(const vil_image_view_base &, char const* filename);
00017 
00018 //: Send a vil_image_view to disk, given filename
00019 // \relatesalso vil_image_view
00020 bool vil_save(const vil_image_view_base &, char const* filename, char const* file_format);
00021 
00022 //: Send vil_image_resource to disk.
00023 // \relatesalso vil_image_resource
00024 bool vil_save_image_resource(const vil_image_resource_sptr &ir, char const* filename,
00025                              char const* file_format);
00026 
00027 //: Save vil_image_resource to file, deducing format from filename.
00028 // \relatesalso vil_image_resource
00029 bool vil_save_image_resource(const vil_image_resource_sptr &ir, char const* filename);
00030 
00031 //: Given a filename, guess the file format tag
00032 // The returned pointer may point into the filename string - so keep it valid.
00033 char const *vil_save_guess_file_format(char const* filename);
00034 
00035 
00036 #if defined(VCL_WIN32) && VXL_USE_WIN_WCHAR_T
00037 //: Send a vil_image_view to disk, deducing format from filename
00038 // \relatesalso vil_image_view
00039 bool vil_save(const vil_image_view_base &, wchar_t const* filename);
00040 
00041 //: Send a vil_image_view to disk, given filename
00042 // \relatesalso vil_image_view
00043 bool vil_save(const vil_image_view_base &, wchar_t const* filename, wchar_t const* file_format);
00044 
00045 //: Send vil_image_resource to disk.
00046 // \relatesalso vil_image_resource
00047 bool vil_save_image_resource(const vil_image_resource_sptr &ir, wchar_t const* filename,
00048                              wchar_t const* file_format);
00049 
00050 //: Save vil_image_resource to file, deducing format from filename.
00051 // \relatesalso vil_image_resource
00052 bool vil_save_image_resource(const vil_image_resource_sptr &ir, wchar_t const* filename);
00053 
00054 //: Given a filename, guess the file format tag
00055 // The returned pointer may point into the filename string - so keep it valid.
00056 wchar_t const *vil_save_guess_file_format(wchar_t const* filename);
00057 #endif //defined(VCL_WIN32) && VXL_USE_WIN_WCHAR_T
00058 
00059 #endif // vil_save_h_