Claw  1.7.3
Classes | Public Member Functions | List of all members
claw::graphic::jpeg::writer Class Reference

This class write an image in a jpeg file. More...

#include <jpeg.hpp>

Classes

struct  destination_manager
 Destination manager that allow us to write in a std::ostream. More...
struct  options
 Parameters of the writing algorithm. More...

Public Member Functions

 writer (const image &img)
 Constructor.
 writer (const image &img, std::ostream &f, const options &opt=options())
 Constructor. Save an image in a jpeg file.
void save (std::ostream &f, const options &opt=options()) const
 Save an image in a jpeg file.

Detailed Description

This class write an image in a jpeg file.

Author
Julien Jorge

Definition at line 168 of file jpeg.hpp.

Constructor & Destructor Documentation

claw::graphic::jpeg::writer::writer ( const image img)

Constructor.

Parameters
imgThe image in which the data will be stored.

Definition at line 168 of file jpeg_writer.cpp.

claw::graphic::jpeg::writer::writer ( const image img,
std::ostream &  f,
const options opt = options() 
)

Constructor. Save an image in a jpeg file.

Parameters
imgThe image from which we read the data.
fThe file in which we write the data.
optOptions about the saved file.

Definition at line 182 of file jpeg_writer.cpp.

References claw::graphic::jpeg::save().

Member Function Documentation

void claw::graphic::jpeg::writer::save ( std::ostream &  f,
const options opt = options() 
) const

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