Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Protected Member Functions | Friends | List of all members
net_instaweb::spriter::LibpngImageLibrary Class Reference

#include "libpng_image_library.h"

Inheritance diagram for net_instaweb::spriter::LibpngImageLibrary:
net_instaweb::spriter::ImageLibraryInterface

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 FilePathbase_input_path ()
 Used by subclasses:
 
const FilePathbase_output_path ()
 
const Delegatedelegate ()
 

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 ImageLibraryInterfaceImageLibraryInterfaceFactory (const GoogleString &library_name)
 Use this factory method to get a usable image library object.
 

Detailed Description

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).

Member Function Documentation

virtual ImageLibraryInterface::Image* net_instaweb::spriter::LibpngImageLibrary::ReadFromFile ( const FilePath path)
protectedvirtual

Read an image from disk. Return NULL (after calling delegate method) on error. Caller owns the returned pointer.

Implements net_instaweb::spriter::ImageLibraryInterface.


The documentation for this class was generated from the following file: