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::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::targa::reader
This class read data from a targa file and store it in an image.
Definition: targa.hpp:216
claw::graphic::targa::targa
targa(unsigned int w, unsigned int h)
Constructor. Creates an empty image.
Definition: targa.cpp:39
claw::graphic::image
A class to deal with images.
Definition: image.hpp:49
targa.hpp
A class for targa pictures.
claw::graphic::targa::writer
This class write an image in a targa file.
Definition: targa.hpp:410
claw
This is the main namespace.
Definition: algorithm.hpp:33