|
Page Speed Optimization Libraries
1.13.35.1
|
#include "image_library_interface.h"
Classes | |
| class | Canvas |
| class | Delegate |
| class | Image |
| Images are immutable rectangular regions of pixels. More... | |
Public Types | |
| typedef GoogleString | FilePath |
Public Member Functions | |
| virtual Image * | ReadFromFile (const FilePath &path)=0 |
| virtual Canvas * | CreateCanvas (int width, int height)=0 |
| ImageLibraryInterface (Delegate *delegate) | |
Static Public Member Functions | |
| static ImageLibraryInterface * | ImageLibraryInterfaceFactory (const GoogleString &library_name) |
| Use this factory method to get a usable image library object. | |
Protected Member Functions | |
| 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 () |
Class ImageLibraryInterface provides an abstract interface to manipulate images. This interface hides the details of any particular image processing library. This makes it easy to port to an environment where a different image processing library is preferred.
Subclasses create methods that act on two types of objects:
|
inlineexplicit |
Constructor for custom subclasses. Prefer to use ImageLibraryInterfaceFactory() if possible.
|
pure virtual |
Read an image from disk. Return NULL (after calling delegate method) on error. Caller owns the returned pointer.
Implemented in net_instaweb::spriter::LibpngImageLibrary.
1.8.6