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

This class read data from a xbm file and store it in an image. More...

#include <xbm.hpp>

Public Member Functions

 reader (image &img)
 Constructor.
 
 reader (image &img, std::istream &f)
 Constructor.
 
 reader (xbm &img, std::istream &f)
 Constructor.
 
 ~reader ()
 Destructor.
 
void load (std::istream &f)
 Load an image from a xbm file.
 

Detailed Description

This class read data from a xbm file and store it in an image.

Author
Julien Jorge

Definition at line 53 of file xbm.hpp.

Constructor & Destructor Documentation

◆ reader() [1/3]

claw::graphic::xbm::reader::reader ( image & img)

Constructor.

Parameters
imgThe image in which the data will be stored.

Definition at line 40 of file xbm_reader.cpp.

◆ reader() [2/3]

claw::graphic::xbm::reader::reader ( image & img,
std::istream & f )

Constructor.

Parameters
imgThe image in which the data will be stored.
fThe file from which we read the data.
Postcondition
img contains the data from f.

Definition at line 51 of file xbm_reader.cpp.

◆ reader() [3/3]

claw::graphic::xbm::reader::reader ( xbm & img,
std::istream & f )

Constructor.

Parameters
imgThe image in which the data will be stored.
fThe file from which we read the data.
Postcondition
img contains the data from f.

Definition at line 64 of file xbm_reader.cpp.

◆ ~reader()

claw::graphic::xbm::reader::~reader ( )

Destructor.

Definition at line 78 of file xbm_reader.cpp.

Member Function Documentation

◆ load()

void claw::graphic::xbm::reader::load ( std::istream & f)

Load an image from a xbm file.

Parameters
fXBM file.

Definition at line 91 of file xbm_reader.cpp.


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