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

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

#include <bitmap.hpp>

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

Public Member Functions

 writer (const image &img)
 Constructor.
 
 writer (const image &img, std::ostream &f)
 Constructor.
 
void save (std::ostream &f) const
 Save the bitmap in a file.
 

Detailed Description

This class write an image in a bitmap file.

Author
Julien Jorge

Definition at line 296 of file bitmap.hpp.

Constructor & Destructor Documentation

◆ writer() [1/2]

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

Constructor.

Parameters
imgThe image to save.

Definition at line 38 of file bitmap_writer.cpp.

◆ writer() [2/2]

claw::graphic::bitmap::writer::writer ( const image & img,
std::ostream & f )

Constructor.

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

Definition at line 47 of file bitmap_writer.cpp.

Member Function Documentation

◆ save()

void claw::graphic::bitmap::writer::save ( std::ostream & f) const

Save the bitmap in a file.

Parameters
fDestination file.

Definition at line 57 of file bitmap_writer.cpp.


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