uicore::ImageFile Class Reference

Load or save an image. More...

#include <image_file.h>

Static Public Member Functions

static PixelBufferPtr load (const std::string &filename, const std::string &type=std::string(), bool srgb=false)
 
static PixelBufferPtr load (const IODevicePtr &file, const std::string &type, bool srgb=false)
 
static void save (PixelBufferPtr buffer, const std::string &filename, const std::string &type=std::string())
 
static void save (PixelBufferPtr buffer, const IODevicePtr &file, const std::string &type)
 
static PixelBufferPtr try_load (const std::string &filename, const std::string &type=std::string(), std::string *out_failure_reason=nullptr, bool srgb=false)
 

Detailed Description

Load or save an image.

Member Function Documentation

static PixelBufferPtr uicore::ImageFile::load ( const std::string filename,
const std::string type = std::string(),
bool  srgb = false 
)
static
static PixelBufferPtr uicore::ImageFile::load ( const IODevicePtr file,
const std::string type,
bool  srgb = false 
)
static
static void uicore::ImageFile::save ( PixelBufferPtr  buffer,
const std::string filename,
const std::string type = std::string() 
)
static
static void uicore::ImageFile::save ( PixelBufferPtr  buffer,
const IODevicePtr file,
const std::string type 
)
static
static PixelBufferPtr uicore::ImageFile::try_load ( const std::string filename,
const std::string type = std::string(),
std::string out_failure_reason = nullptr,
bool  srgb = false 
)
static

The documentation for this class was generated from the following file: