.

ImageToolsFactory Class Reference
[ImageTools]

Wrapper around common image operations. More...

List of all members.

Static Public Member Functions

static  create_imagetools ()
  Create image tools.
static  load ($implementation)

Public Attributes

const  IMPL_GD = 'gd'

Detailed Description

Wrapper around common image operations.

Uses either gd or imagick extension, if installed. imagick is preferred.

Author:
Gerd Riesselmann

Definition at line 10 of file imagetoolsfactory.cls.php.


Member Function Documentation

static ImageToolsFactory::create_imagetools (  )  [static]

Create image tools.

Returns:
IImageTools

Definition at line 18 of file imagetoolsfactory.cls.php.

00018                                                    {
00019                 $ret = false;
00020                 // Find and set implementation
00021                 //if (class_exists('Imagick')) {
00022                 //      require_once dirname(__FILE__) . '/imagetools_impl/imagetools.imagick.cls.php';
00023                 //      ImageTools::set_implementation(new ImageToolsIMagick());        
00024                 //}
00025                 //else {
00026                         self::load(self::IMPL_GD);
00027                         $ret = new ImageToolsGD();              
00028                 //}
00029                 return $ret;    
00030         }
static ImageToolsFactory::load ( implementation  )  [static]

Definition at line 32 of file imagetoolsfactory.cls.php.

00032                                                      {
00033                 switch ($implementation) {
00034                         case self::IMPL_GD:
00035                                 require_once dirname(__FILE__) . '/imagetools_impl/imagetools.gd.cls.php';
00036                                 break;
00037                         default:
00038                                 break;
00039                 }
00040         }

Member Data Documentation

Definition at line 11 of file imagetoolsfactory.cls.php.


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