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

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

#include <bitmap.hpp>

Inheritance diagram for claw::graphic::bitmap::reader:
Collaboration diagram for claw::graphic::bitmap::reader:

Public Member Functions

 reader (image &img)
 Constructor.
 
 reader (image &img, std::istream &f)
 Constructor.
 
void load (std::istream &f)
 Load the image data from a stream.
 

Detailed Description

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

Author
Julien Jorge

Definition at line 135 of file bitmap.hpp.

Constructor & Destructor Documentation

◆ reader() [1/2]

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

Constructor.

Parameters
imgThe image in which the data will be stored.

Definition at line 276 of file bitmap_reader.cpp.

◆ reader() [2/2]

claw::graphic::bitmap::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 286 of file bitmap_reader.cpp.

Member Function Documentation

◆ load()

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

Load the image data from a stream.

Parameters
fThe file from which we read the data.
Postcondition
The image passed to the constructor contains the data from f.

Definition at line 297 of file bitmap_reader.cpp.


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