Image_GD_Driver

Package Image
Inheritance class Image_GD_Driver » Image_Driver
GD Image Driver.

$Id: GD.php 3769 2008-12-15 00:48:56Z zombor $

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
blank_png Image_GD_Driver
blank_png_height Image_GD_Driver
blank_png_width Image_GD_Driver
errors Image_Driver
image Image_Driver
tmp_image Image_Driver

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Image_GD_Driver
crop() Image_GD_Driver
execute() Executes a set of actions, defined in pairs. Image_Driver
flip() Image_GD_Driver
process() Image_GD_Driver
resize() Image_GD_Driver
rotate() Image_GD_Driver
sharpen() Image_GD_Driver

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
imagecreatetransparent() Returns an image with a transparent background. Used for rotating to Image_GD_Driver
properties() Image_GD_Driver
sanitize_geometry() Sanitize and normalize a geometry array based on the temporary image Image_Driver

Property Details

blank_png property
protected static $blank_png;

blank_png_height property
protected static $blank_png_height;

blank_png_width property
protected static $blank_png_width;

Method Details

__construct() method
public void __construct()

crop() method
public void crop($properties)
$properties

flip() method
public void flip($direction)
$direction

imagecreatetransparent() method
protected resource imagecreatetransparent(integer $width, integer $height)
$width integer image width
$height integer image height
{return} resource

Returns an image with a transparent background. Used for rotating to prevent unfilled backgrounds.

process() method
public void process($image, $actions, $dir, $file, $render=false)
$image
$actions
$dir
$file
$render

properties() method
protected void properties()

resize() method
public void resize($properties)
$properties

rotate() method
public void rotate($amount)
$amount

sharpen() method
public void sharpen($amount)
$amount