49 static PixelBufferPtr
load(
const IODevicePtr &file,
const std::string &type,
bool srgb =
false);
52 static void save(PixelBufferPtr buffer,
const IODevicePtr &file,
const std::string &type);
static PixelBufferPtr load(const std::string &filename, const std::string &type=std::string(), bool srgb=false)
static PixelBufferPtr try_load(const std::string &filename, const std::string &type=std::string(), std::string *out_failure_reason=nullptr, bool srgb=false)
static void save(PixelBufferPtr buffer, const std::string &filename, const std::string &type=std::string())
std::shared_ptr< IODevice > IODevicePtr
Definition: iodevice.h:85
Load or save an image.
Definition: image_file.h:43
std::shared_ptr< PixelBuffer > PixelBufferPtr
Definition: d3d_target.h:39
Definition: Application/application.h:35