sprint 1-alpha
|
an image container More...
#include <image.h>
Public Member Functions | |
image (iimage *src) | |
image (iimage *src, int x0, int y0, int x1, int y1) | |
costructor with crop | |
unsigned int | width () const |
return the width of image | |
unsigned int | height () const |
return the height of image | |
unsigned int | bpp () const |
return the Bytes per Pixel | |
unsigned int | type () const |
return the image type | |
long | stride () const |
return the stride of image | |
bool | unique () const |
the referenced pointer is unique | |
long | use_count () const |
the reference count | |
void | be_unique () |
force the buffer to be unique before access to inner shared_pointer for writing | |
void | restore () |
restore when linked image is modified (decrop/read) | |
image | clone () const |
clone the image view (the the image are formally separated) | |
operator const imageview & () const | |
cast (readonly) to imageview geometry | |
operator iimage & () const | |
cast to iimage |
an image container
sprint::image img ( new sprint::iimage() );
sprint::image::image | ( | iimage * | src | ) |
costructor from image object
sprint::image img(new sprint::iimage(width, height, tmp.type) );