Page Speed Optimization Libraries  1.4.26.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Member Functions | Protected Member Functions | Friends
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

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