#include "libpng_image_library.h"
Classes | |
class | Canvas |
class | Image |
Images are immutable rectangular regions of pixels. More... | |
Public Member Functions | |
LibpngImageLibrary (const FilePath &base_input_path, const FilePath &base_output_path, Delegate *delegate) | |
Protected Member Functions | |
virtual ImageLibraryInterface::Image * | ReadFromFile (const FilePath &path) |
virtual ImageLibraryInterface::Canvas * | CreateCanvas (int width, int height) |
Friends | |
class | LibpngImageLibraryTest |
An implementation of the ImageLibraryInterface using direct calls to libpng. The advantage of this over OpenCV is that it can handle transparency. The output of this library is always an RGBA PNG with 8 bits per channel (so 16-bit images will be degraded).
virtual ImageLibraryInterface::Image* net_instaweb::spriter::LibpngImageLibrary::ReadFromFile | ( | const FilePath & | path | ) | [protected, virtual] |
Read an image from disk. Return NULL (after calling delegate method) on error. Caller owns the returned pointer.
Implements net_instaweb::spriter::ImageLibraryInterface.