Page Speed Optimization Libraries
1.13.35.1
|
#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) | |
Public Member Functions inherited from net_instaweb::spriter::ImageLibraryInterface | |
ImageLibraryInterface (Delegate *delegate) | |
Protected Member Functions | |
virtual ImageLibraryInterface::Image * | ReadFromFile (const FilePath &path) |
virtual ImageLibraryInterface::Canvas * | CreateCanvas (int width, int height) |
Protected Member Functions inherited from net_instaweb::spriter::ImageLibraryInterface | |
ImageLibraryInterface (const FilePath &base_input_path, const FilePath &base_output_path, Delegate *delegate) | |
Use ImageLibraryInterfaceFactory() to access an image library. | |
const FilePath & | base_input_path () |
Used by subclasses: | |
const FilePath & | base_output_path () |
const Delegate * | delegate () |
Friends | |
class | LibpngImageLibraryTest |
Additional Inherited Members | |
Public Types inherited from net_instaweb::spriter::ImageLibraryInterface | |
typedef GoogleString | FilePath |
Static Public Member Functions inherited from net_instaweb::spriter::ImageLibraryInterface | |
static ImageLibraryInterface * | ImageLibraryInterfaceFactory (const GoogleString &library_name) |
Use this factory method to get a usable image library object. | |
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).
|
protectedvirtual |
Read an image from disk. Return NULL (after calling delegate method) on error. Caller owns the returned pointer.
Implements net_instaweb::spriter::ImageLibraryInterface.