Phundament App Class Reference
  • Package
  • Class
  • Tree

Packages

  • bootstrap
    • widgets
      • input
  • Image
  • None
  • p3admin
  • p3extensions
    • behaviors
    • commands
    • components
    • helpers
    • widgets
  • p3media
    • actions
    • controllers
    • models
  • p3pages
    • models
  • p3widgets
    • components
    • models
  • PHP
  • system
    • db
      • ar
    • gii
    • web
      • auth
      • helpers
      • widgets
  • yiiext
    • widgets
      • fancybox
      • lipsum
  • zii
    • widgets
      • grid

Classes

  • Image
  • Image_Driver
  • Image_GD_Driver
  • Image_ImageMagick_Driver

Class Image_GD_Driver

GD Image Driver.

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

Image_Driver
Extended by Image_GD_Driver
Package: Image
Copyright: (c) 2007-2008 Kohana Team
License: http://kohanaphp.com/license.html
Author: Kohana Team
Located at phundament/p3extensions/components/image/drivers/Image_GD_Driver.php

Methods summary

public
# __construct( )
public boolean
# process( string $image, array $actions, string $dir, string $file, mixed $render = FALSE )

Process an image with a set of actions.

Process an image with a set of actions.

Parameters

$image
string
image filename
$actions
array
actions to execute
$dir
string
destination directory path
$file
string
destination filename
$render

Returns

boolean
public boolean
# flip( integer $direction )

Flip an image. Valid directions are horizontal and vertical.

Flip an image. Valid directions are horizontal and vertical.

Parameters

$direction
integer
direction to flip

Returns

boolean
public boolean
# crop( array $properties )

Crop an image. Valid properties are: width, height, top, left.

Crop an image. Valid properties are: width, height, top, left.

Parameters

$properties
array
new properties

Returns

boolean
public boolean
# resize( array $properties )

Resize an image. Valid properties are: width, height, and master.

Resize an image. Valid properties are: width, height, and master.

Parameters

$properties
array
new properties

Returns

boolean
public boolean
# rotate( integer $amount )

Rotate an image. Valid amounts are -180 to 180.

Rotate an image. Valid amounts are -180 to 180.

Parameters

$amount
integer
amount to rotate

Returns

boolean
public boolean
# sharpen( integer $amount )

Sharpen and image. Valid amounts are 1 to 100.

Sharpen and image. Valid amounts are 1 to 100.

Parameters

$amount
integer
amount to sharpen

Returns

boolean
protected array
# properties( )

Return the current width and height of the temporary image. This is mainly needed for sanitizing the geometry.

Return the current width and height of the temporary image. This is mainly needed for sanitizing the geometry.

Returns

array
width, height
protected resource
# imagecreatetransparent( integer $width, integer $height )

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

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

Parameters

$width
integer
image width
$height
integer
image height

Returns

resource

Methods inherited from Image_Driver

execute(), sanitize_geometry()

Magic methods summary

Properties summary

protected static mixed $blank_png
#
protected static mixed $blank_png_width
#
protected static mixed $blank_png_height
#

Properties inherited from Image_Driver

$errors, $image, $tmp_image

Phundament App Class Reference API documentation generated by ApiGen 2.8.0