#include <mptr_cairo_png.h>
Public Member Functions |
| cairo_png_mptr (const synfig::FileSystem::Identifier &identifier) |
| ~cairo_png_mptr () |
virtual bool | get_frame (cairo_surface_t *&csurface, const synfig::RendDesc &renddesc, synfig::Time time, synfig::ProgressCallback *callback) |
| Gets a frame and puts it into cairo_surface_t.
|
virtual bool | get_frame (cairo_surface_t *&csurface, const synfig::RendDesc &renddesc, synfig::Time time, bool &trimmed, unsigned int &width, unsigned int &height, unsigned int &top, unsigned int &left, synfig::ProgressCallback *callback) |
Gamma & | gamma () |
const Gamma & | gamma () const |
virtual | ~CairoImporter () |
virtual bool | get_frame (cairo_surface_t *&csurface, const RendDesc &renddesc, Time time, bool &trimmed __attribute__((unused)), unsigned int &width __attribute__((unused)), unsigned int &height __attribute__((unused)), unsigned int &top __attribute__((unused)), unsigned int &left __attribute__((unused)), ProgressCallback *callback=NULL) |
virtual bool | is_animated () |
| Returns true if the importer pays attention to the time parameter of get_frame()
|
Constructor & Destructor Documentation
References synfig::Gamma::b_F32_to_F32(), synfig::FileSystem::Identifier::filename, synfig::Gamma::g_F32_to_F32(), synfig::CairoImporter::gamma(), synfig::CairoColor::get_alpha(), synfig::CairoColor::get_b(), synfig::CairoColor::get_g(), synfig::CairoColor::get_r(), synfig::FileSystem::Identifier::get_read_stream(), synfig::CairoSurface::map_cairo_image(), synfig::Gamma::r_F32_to_F32(), synfig::CairoColor::set_b(), synfig::CairoSurface::set_cairo_surface(), synfig::CairoColor::set_g(), synfig::CairoColor::set_r(), and synfig::CairoSurface::unmap_cairo_image().
cairo_png_mptr::~cairo_png_mptr |
( |
| ) |
|
Member Function Documentation
Gets a frame and puts it into cairo_surface_t.
- Parameters
-
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. |
- Returns
true
on success, false
on error
- See Also
- ProgressCallback, Surface
Implements synfig::CairoImporter.
The documentation for this class was generated from the following files: