Lightweight error code wrapper for the promeki library.
Definition error.h:39
Abstract backend for image file format I/O.
Definition imagefileio.h:35
Image file loader and saver.
Definition imagefile.h:27
void setFilename(const String &val)
Sets the filename for loading or saving.
Definition imagefile.h:53
ImageFile(int id=0)
Constructs an ImageFile for the given format.
Error save()
Saves the image to the file specified by filename().
const Image & image() const
Returns the image data.
Definition imagefile.h:62
Error load()
Loads an image from the file specified by filename().
void setImage(const Image &val)
Sets the image data for saving.
Definition imagefile.h:70
const String & filename() const
Returns the filename associated with this image file.
Definition imagefile.h:45
ID
Identifiers for supported image file formats.
Definition imagefile.h:30
@ PNG
PNG image format.
Definition imagefile.h:32
@ Invalid
No format / invalid.
Definition imagefile.h:31
Raster image with pixel format, planes, and metadata.
Definition image.h:48
Dynamic array container wrapping std::vector.
Definition list.h:40
Encoding-aware string class with copy-on-write semantics.
Definition string.h:35
#define PROMEKI_NAMESPACE_BEGIN
Starts a promeki namespace block.
Definition namespace.h:14
#define PROMEKI_NAMESPACE_END
Ends a promeki namespace block.
Definition namespace.h:19