latest version v1.9 - last update 10 Apr 2010 |
Parameter class of the ioBMP class. More...
#include <ltiPNGFunctor.h>
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
parameters & | copy (const parameters &other) |
virtual functor::parameters * | clone () const |
virtual const char * | getTypeName () const |
virtual bool | write (ioHandler &handler, const bool complete=true) const |
virtual bool | read (ioHandler &handler, const bool complete=true) |
Public Attributes | |
int | bitsPerPixel |
int | quantColors |
bool | useAlphaChannel |
Parameter class of the ioBMP class.
lti::ioPNG::parameters::parameters | ( | ) |
default constructor
Reimplemented from lti::ioFunctor::parameters.
lti::ioPNG::parameters::parameters | ( | const parameters & | other | ) | [inline] |
virtual functor::parameters* lti::ioPNG::parameters::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the parameters.
Reimplemented from lti::ioFunctor::parameters.
parameters& lti::ioPNG::parameters::copy | ( | const parameters & | other | ) |
virtual const char* lti::ioPNG::parameters::getTypeName | ( | ) | const [virtual] |
returns name of this class
Reimplemented from lti::ioFunctor::parameters.
virtual bool lti::ioPNG::parameters::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [virtual] |
write the parameters in the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::ioFunctor::parameters.
virtual bool lti::ioPNG::parameters::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [virtual] |
write the parameters in the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::ioFunctor::parameters.
bits per pixel
Default value: 24
quantization of colors.
if 0 no quantization will be made. if >0 then a k-mean analysis of the colors will be made and the used color number will be reduce to quantColors
. Not implemented yet
Default value: 0
True if Alpha channel is to be considered.
If this is true, bitsPerPixel must be 32!
Default value: false