35 #include "../../Core/IOData/file_system.h"
43 class ImageProviderType;
65 const std::string &filename,
66 const std::string &type = std::string(),
68 std::string *out_failure_reason =
nullptr,
77 const std::string &filename,
79 const std::string &type = std::string(),
83 const std::string &fullname,
84 const std::string &type = std::string(),
89 const std::string &type,
97 const std::string &filename,
99 const std::string &type = std::string());
103 const std::string &fullname,
104 const std::string &type = std::string());
109 const std::string &type);
static PixelBuffer load(IODevice &file, const std::string &type, bool srgb=false)
static void save(PixelBuffer buffer, IODevice &file, const std::string &type)
I/O Device interface.
Definition: iodevice.h:51
static void save(PixelBuffer buffer, const std::string &fullname, const std::string &type=std::string())
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 PixelBuffer load(const std::string &fullname, const std::string &type=std::string(), bool srgb=false)
Virtual File System (VFS).
Definition: file_system.h:48
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'.
Pixel data container.
Definition: pixel_buffer.h:69
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'.
Image Provider factory.
Definition: provider_factory.h:47