sprint 1-alpha
|
an image buffer capable of release, realloc, clonable More...
#include <image.h>
Inherits sprint::sharable, sprint::uncopiable, and sprint::imageview.
Public Member Functions | |
iimage () | |
assign a dummy releaser for free memory | |
iimage (unsigned int width, unsigned int height, unsigned int type) | |
~iimage () | |
On release image will be released. | |
void | realloc (unsigned int swidth, unsigned int sheight, long sstride, unsigned int stype) |
a method to change the geometry of image | |
void | realloc (unsigned int swidth, unsigned int sheight, long sstride, unsigned int stype, unsigned int spalettetype) |
set also the palettetype | |
void | realloc (unsigned int swidth, unsigned int sheight, unsigned int stype) |
fastest method for alloc an image: width, height and image type | |
Public Attributes | |
void(* | release )(iimage *obj) |
an image buffer capable of release, realloc, clonable
sprint::iimage::iimage | ( | unsigned int | width, |
unsigned int | height, | ||
unsigned int | type | ||
) |
allocate a image
sprint::iimage *pImg = new sprint::iimage(width, height, type); sprint::iimage *pImg = new sprint::iimage(width, height, TYPE_RGB24);
void(* sprint::iimage::release)(iimage *obj) |
a callback called in order to release mem buffer allocated with a different tecnique (i.e. shared memory, an external library and so on)