claw 1.9.0
 
Loading...
Searching...
No Matches
claw::graphic::xbm::writer Class Reference

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

#include <xbm.hpp>

Classes

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.
 
void save (std::ostream &f, const options &opt=options()) const
 Save the image in a XBM file.
 

Detailed Description

This class write an image in a xbm file.

Author
Julien Jorge

Definition at line 92 of file xbm.hpp.

Constructor & Destructor Documentation

◆ writer() [1/2]

claw::graphic::xbm::writer::writer ( const image & img)

Constructor.

Parameters
imgThe image in which the data will be stored.

Definition at line 57 of file xbm_writer.cpp.

◆ writer() [2/2]

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

Constructor.

Parameters
imgThe image to save.
fThe file in which we write the data.
optSaving options.

Definition at line 67 of file xbm_writer.cpp.

Member Function Documentation

◆ save()

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

Save the image in a XBM file.

Parameters
fXBM file.
optSaving options.

Definition at line 79 of file xbm_writer.cpp.


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