v0.1.8
|
A container capable of loading and manipulating RGBA images. More...
#include <Image.hpp>
Public Member Functions | |
Image (const Image ©) | |
Image (ImageFormat format, UCoord32 size) | |
Image (ImageFormat format, UCoord32 size, void *data) | |
bool | CanLoad (const String &file) const |
void | Load (const String &file) |
void | Save (const String &file, const String &extension) const |
void | Setup (ImageFormat format, UCoord32 size, void *data) |
Color | GetPixel (UInt32 x, UInt32 y) |
void | SetPixel (UInt32 x, UInt32 y, Color pixel) |
template<typename Type > | |
Type * | GetData () |
template<typename Type > | |
const Type * | GetData () const |
template<typename Type > | |
void | SetData (Type *data) |
ImageFormat | GetFormat () const |
UCoord32 | GetSize () const |
UInt32 | GetWidth () const |
UInt32 | GetHeight () const |
Size | GetPixelSize () const |
Size | GetDataSize () const |
bool | IsValid () const |
void | Free () |
Static Public Member Functions | |
static Image * | AdjustBrightness (Image *img, Float32 amt) |
static Image * | GetNegative (Image *img) |
static Image * | GetGrayscale (Image *img) |
static Image * | SwapColors (Image *img, Color pre, Color post) |
static Image * | Mix (Image *one, Image *two, UInt32 method=ImageMixMethods::AVERAGE) |
A container capable of loading and manipulating RGBA images.