33 #include "../../Core/IOData/file_system.h" 41 class ImageProviderType;
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 &filename, FileSystem &fs, const std::string &type=std::string())
Saves the given PixelBuffer to the file given by 'filename'.
I/O Device interface.
Definition: iodevice.h:49
Pixel data container.
Definition: pixel_buffer.h:67
Virtual File System (VFS).
Definition: file_system.h:46
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:44