#include <mptr_imagemagick.h>
Public Member Functions | |
imagemagick_mptr (const char *filename) | |
~imagemagick_mptr () | |
virtual bool | get_frame (synfig::Surface &surface, synfig::Time time, synfig::ProgressCallback *callback) |
Gets a frame and puts it into surface. |
imagemagick_mptr::imagemagick_mptr | ( | const char * | filename | ) |
imagemagick_mptr::~imagemagick_mptr | ( | ) |
bool imagemagick_mptr::get_frame | ( | synfig::Surface & | surface, | |
synfig::Time | time, | |||
synfig::ProgressCallback * | callback | |||
) | [virtual] |
Gets a frame and puts it into surface.
surface | Reference to surface to put frame into | |
time | For animated importers, determines which frame to get. For static importers, this parameter is unused. | |
callback | Pointer to callback class for progress, errors, etc. |
true
on success, false
on error Implements synfig::Importer.
References _, synfig::Gamma::b_U8_to_F32(), synfig::error(), synfig::ProgressCallback::error(), synfig::Gamma::g_U8_to_F32(), synfig::Importer::gamma(), synfig::Color::get_a(), synfig::Color::get_b(), synfig::Color::get_g(), synfig::Color::get_r(), and synfig::Gamma::r_U8_to_F32().