33#include "../../Core/IOData/file_system.h" 
   41        class ImageProviderType;
 
   54                        const std::string &filename,
 
   55                        const std::string &type = std::string(),
 
   57                        std::string *out_failure_reason = 
nullptr,
 
   66                        const std::string &filename,
 
   68                        const std::string &type = std::string(),
 
   72                        const std::string &fullname,
 
   73                        const std::string &type = std::string(),
 
   78                        const std::string &type,
 
   86                        const std::string &filename,
 
   88                        const std::string &type = std::string());
 
   92                        const std::string &fullname,
 
   93                        const std::string &type = std::string());
 
   98                        const std::string &type);
 
 
Virtual File System (VFS).
Definition file_system.h:47
I/O Device interface.
Definition iodevice.h:50
Image Provider factory.
Definition provider_factory.h:45
static void save(PixelBuffer buffer, IODevice &file, const std::string &type)
static PixelBuffer load(const std::string &fullname, const std::string &type=std::string(), bool srgb=false)
static PixelBuffer load(IODevice &file, const std::string &type, bool srgb=false)
static PixelBuffer try_load(const std::string &filename, const std::string &type=std::string(), const FileSystem &fs=FileSystem(), std::string *out_failure_reason=nullptr, bool srgb=false)
Attempts to load an image file from 'filename', using the provider identified by 'type'.
static void save(PixelBuffer buffer, const std::string &filename, FileSystem &fs, const std::string &type=std::string())
Saves the given PixelBuffer to the file given by 'filename'.
static PixelBuffer load(const std::string &filename, const FileSystem &fs, const std::string &type=std::string(), bool srgb=false)
Loads an image file from 'filename', using the provider.
static void save(PixelBuffer buffer, const std::string &fullname, const std::string &type=std::string())
Pixel data container.
Definition pixel_buffer.h:68