net_instaweb::spriter::LibpngImageLibrary Class Reference

#include "libpng_image_library.h"

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

List of all members.

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

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:34:23 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3