sprint 1-alpha
Public Member Functions
sprint::image Class Reference

an image container More...

#include <image.h>

List of all members.

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

Detailed Description

an image container

Note:
a SharedPtr tecnique are used to reduce copy between image object
 sprint::image img ( new sprint::iimage() );      

Constructor & Destructor Documentation

sprint::image::image ( iimage src)

costructor from image object

 sprint::image img(new sprint::iimage(width, height, tmp.type) );

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines