targa.cpp
Go to the documentation of this file.
/*
CLAW - a C++ Library Absolutely Wonderful
CLAW is a free library without any particular aim but being useful to
anyone.
Copyright (C) 2005-2011 Julien Jorge
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
contact: julien.jorge@gamned.org
*/
#include <claw/targa.hpp>
/*----------------------------------------------------------------------------*/
claw::graphic::targa::targa( unsigned int w, unsigned int h )
: claw::graphic::image(w, h)
{
} // targa::targa() [constructor]
/*----------------------------------------------------------------------------*/
claw::graphic::targa::targa( const image& that )
: claw::graphic::image(that)
{
} // targa::targa() [copy constructor]
/*----------------------------------------------------------------------------*/
claw::graphic::targa::targa( std::istream& f )
{
reader(*this, f);
} // targa::targa() [constructor, from file]
/*----------------------------------------------------------------------------*/
void claw::graphic::targa::save( std::ostream& os, bool rle ) const
{
writer(*this, os, rle);
} // targa::save()
claw::graphic::image::image
image()
Constructor. Creates an image without datas.
Definition image.cpp:106
claw::graphic::targa::reader
This class read data from a targa file and store it in an image.
Definition targa.hpp:217
claw::graphic::targa::writer
This class write an image in a targa file.
Definition targa.hpp:411
claw::graphic::targa::targa
targa(unsigned int w, unsigned int h)
Constructor. Creates an empty image.
Definition targa.cpp:39
claw::graphic::targa::save
void save(std::ostream &os, bool rle) const
Save the content of the image in a stream.
Definition targa.cpp:72
claw::graphic
Everything about image structures and processing.
Definition bitmap.hpp:43
claw
This is the main namespace.
Definition algorithm.hpp:34
targa.hpp
A class for targa pictures.