ionflux.org | Impressum

Ionflux::Tools::Cairo::ImageSurface Class Reference
[Cairo]

Cairo image surface. More...

#include <CairoImageSurface.hpp>

Inheritance diagram for Ionflux::Tools::Cairo::ImageSurface:

Inheritance graph
[legend]
Collaboration diagram for Ionflux::Tools::Cairo::ImageSurface:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ImageSurface ()
 Constructor.
 ImageSurface (const ImageSurface &initSurface)
 Constructor.
 ImageSurface (cairo_surface_t *initSurface)
 Constructor.
 ImageSurface (cairo_format_t format, int width, int height)
 Constructor.
 ImageSurface (unsigned char *data, cairo_format_t format, int width, int height, int stride)
 Constructor.
 ImageSurface (const std::string &pngFilename)
 Constructor.
 ImageSurface (cairo_read_func_t pngReadFunc, void *closure)
 Constructor.
virtual ~ImageSurface ()
 Destructor.
virtual cairo_status_t writeToPng (const std::string &pngFilename)
 Write to png.
virtual cairo_status_t writeToPngStream (cairo_write_func_t write_func, void *closure)
 Write to png stream.
virtual int getWidth ()
 Get width.
virtual int getHeight ()
 Get height.
virtual ImageSurface & operator= (const ImageSurface &newCairoSurface)
 Assignment operator.
virtual ImageSurface & operator= (cairo_surface_t *newCairoSurface)
 Assignment operator.

Detailed Description

Cairo image surface.

Image surface for the Cairo vector graphics API (see http://www.cairographics.org/).

Note:
Not all features of Cairo are supported yet by this wrapper.


Constructor & Destructor Documentation

Ionflux::Tools::Cairo::ImageSurface::ImageSurface (   ) 
 

Constructor.

Construct new ImageSurface object.

Ionflux::Tools::Cairo::ImageSurface::ImageSurface (  const ImageSurface &  initSurface  ) 
 

Constructor.

Construct new ImageSurface object.

Parameters:
initSurface Cairo image surface.

Ionflux::Tools::Cairo::ImageSurface::ImageSurface (  cairo_surface_t *  initSurface  ) 
 

Constructor.

Construct new ImageSurface object.

Parameters:
initSurface Cairo image surface.

Ionflux::Tools::Cairo::ImageSurface::ImageSurface (  cairo_format_t  format,
int  width,
int  height
) 
 

Constructor.

Construct new ImageSurface object.

Parameters:
format Format.
width Width.
height Height.

Ionflux::Tools::Cairo::ImageSurface::ImageSurface (  unsigned char *  data,
cairo_format_t  format,
int  width,
int  height,
int  stride
) 
 

Constructor.

Construct new ImageSurface object.

Parameters:
data Data.
format Format.
width Width.
height Height.
stride Stride.

Ionflux::Tools::Cairo::ImageSurface::ImageSurface (  const std::string &  pngFilename  ) 
 

Constructor.

Construct new ImageSurface object.

Parameters:
pngFilename Filename of a PNG file.

Ionflux::Tools::Cairo::ImageSurface::ImageSurface (  cairo_read_func_t  pngReadFunc,
void *  closure
) 
 

Constructor.

Construct new ImageSurface object.

Parameters:
pngReadFunc Read function for PNG stream.
closure Closure.

Ionflux::Tools::Cairo::ImageSurface::~ImageSurface (   )  [virtual]
 

Destructor.

Destruct ImageSurface object.


Member Function Documentation

int Ionflux::Tools::Cairo::ImageSurface::getHeight (   )  [virtual]
 

Get height.

Get height

Returns:
.

int Ionflux::Tools::Cairo::ImageSurface::getWidth (   )  [virtual]
 

Get width.

Get width

Returns:
.

ImageSurface & Ionflux::Tools::Cairo::ImageSurface::operator= (  cairo_surface_t *  newCairoSurface  )  [virtual]
 

Assignment operator.

Assign a cairo surface to this surface object.

Parameters:
newCairoSurface Cairo image surface.
Returns:
The object itself.

Reimplemented from Ionflux::Tools::Cairo::Surface.

ImageSurface & Ionflux::Tools::Cairo::ImageSurface::operator= (  const ImageSurface &  newCairoSurface  )  [virtual]
 

Assignment operator.

Assign a surface to another surface.

Parameters:
newCairoSurface Cairo image surface.
Returns:
The object itself.

cairo_status_t Ionflux::Tools::Cairo::ImageSurface::writeToPng (  const std::string &  pngFilename  )  [virtual]
 

Write to png.

Write to png

Parameters:
pngFilename Filename of a PNG file.
Returns:
.

cairo_status_t Ionflux::Tools::Cairo::ImageSurface::writeToPngStream (  cairo_write_func_t  write_func,
void *  closure
)  [virtual]
 

Write to png stream.

Write to png stream

Parameters:
write_func Write_func.
closure Closure.
Returns:
.


The documentation for this class was generated from the following files:
Generated on Tue Mar 14 21:12:22 2006 for Ionflux Tools Class Library (iftools) by  doxygen 1.4.6