Claw
1.7.3
|
This class reads data from a gif file. The image is resized to the size of the screen (as defined in the gif file) and the frames are stored in a list of frames passed as parameter. More...
#include <gif.hpp>
Public Member Functions | |
reader (image &img) | |
Constructor. | |
reader (image &img, std::istream &f) | |
Constructor. | |
reader (frame_list &frames, std::istream &f) | |
Constructor. | |
reader (image &img, frame_list &frames, std::istream &f) | |
Constructor. | |
~reader () | |
Destructor. | |
void | load (std::istream &f) |
Load the image data from a stream. |
This class reads data from a gif file. The image is resized to the size of the screen (as defined in the gif file) and the frames are stored in a list of frames passed as parameter.
claw::graphic::gif::reader::reader | ( | image & | img | ) |
Constructor.
img | The image in which we store the data. |
Definition at line 272 of file gif_reader.cpp.
claw::graphic::gif::reader::reader | ( | image & | img, |
std::istream & | f | ||
) |
Constructor.
img | The image in which we store the data. |
f | The stream from which we read the data (gif file format). |
The first frame of the gif will be saved in the image passed to the constructor.
Definition at line 287 of file gif_reader.cpp.
References load().
claw::graphic::gif::reader::reader | ( | frame_list & | frames, |
std::istream & | f | ||
) |
Constructor.
frames | The frames read from the file. |
f | The stream from which we read the data (gif file format). |
Definition at line 300 of file gif_reader.cpp.
References claw::graphic::image::load().
claw::graphic::gif::reader::reader | ( | image & | img, |
frame_list & | frames, | ||
std::istream & | f | ||
) |
Constructor.
img | The image in which we store the data. |
frames | The frames read from the file. |
f | The stream from which we read the data (gif file format). |
The first frame of the gif will be saved in the image passed to the constructor.
Definition at line 319 of file gif_reader.cpp.
References claw::graphic::image::load().
void claw::graphic::gif::reader::load | ( | std::istream & | f | ) |
Load the image data from a stream.
f | The stream from which we read the data (gif file format). |
Definition at line 341 of file gif_reader.cpp.
Referenced by reader().