version 3.3

VRS::PaletteFileImage Class Reference

Class for representing file mapped image data. More...

#include <vrs/image/palettefileimage.h>

Inheritance diagram for VRS::PaletteFileImage:

VRS::PaletteImage VRS::Image VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 PaletteFileImage (const std::string &filename, bool isWritable=false)
 PaletteFileImage (const std::string &filename, int width, int height, ColorPalette *palette, bool persistent=true)
 PaletteFileImage (DataResource *resource)
virtual ~PaletteFileImage ()
virtual int width () const
virtual int height () const
 See Image.
virtual void * lineComponents (int y) const
virtual void * pixelComponents (int x, int y, int component=0) const
 See Image.
 VRS_TYPEINFO (PaletteFileImage, PaletteImage)
 VRS_SERIALIZABLE (PaletteFileImage)

Static Public Member Functions

static bool canBeUsed (const std::string &filename)

Protected Member Functions

 PaletteFileImage ()


Detailed Description

Class for representing file mapped image data.

Constructor & Destructor Documentation

VRS::PaletteFileImage::PaletteFileImage ( const std::string &  filename,
bool  isWritable = false 
)

Open the image-file 'filename' which must be a 8 bit BMP image with colortable. Image data is upside down. For the 'readOnly'-flag see FileMapper.

VRS::PaletteFileImage::PaletteFileImage ( const std::string &  filename,
int  width,
int  height,
ColorPalette palette,
bool  persistent = true 
)

Create an image-file 'filename' for the given image-parameters (8-bitBMP). The ColorPalette palette is used as colorpalette for the created file. Image data is upside down. It is opened in read-write-mode. For the 'persistent'-flag see FileMapper.

VRS::PaletteFileImage::PaletteFileImage ( DataResource resource  ) 

virtual VRS::PaletteFileImage::~PaletteFileImage (  )  [virtual]

VRS::PaletteFileImage::PaletteFileImage (  )  [protected]


Member Function Documentation

virtual int VRS::PaletteFileImage::width (  )  const [virtual]

Reimplemented from VRS::PaletteImage.

virtual int VRS::PaletteFileImage::height (  )  const [virtual]

See Image.

Reimplemented from VRS::PaletteImage.

virtual void* VRS::PaletteFileImage::lineComponents ( int  y  )  const [virtual]

Reimplemented from VRS::PaletteImage.

virtual void* VRS::PaletteFileImage::pixelComponents ( int  x,
int  y,
int  component = 0 
) const [virtual]

See Image.

Reimplemented from VRS::PaletteImage.

static bool VRS::PaletteFileImage::canBeUsed ( const std::string &  filename  )  [static]

VRS::PaletteFileImage::VRS_TYPEINFO ( PaletteFileImage  ,
PaletteImage   
)

VRS::PaletteFileImage::VRS_SERIALIZABLE ( PaletteFileImage   ) 


The documentation for this class was generated from the following file:

Generated on Tue May 22 06:00:21 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact