[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/mambots/editors/mostlyce/jscripts/tiny_mce/imagemanager/Classes/ -> GD.php (summary)

(no description)

File Size: 508 lines (17 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 mambots/editors/mostlyce/jscripts/tiny_mce/imagemanager/Classes/Transform.php

Defines 1 class

Image_Transform_Driver_GD:: (11 methods):
  Image_Transform_GD()
  load()
  addText()
  rotate()
  _resize()
  crop()
  flip()
  gamma()
  save()
  display()
  free()


Class: Image_Transform_Driver_GD  - X-Ref

Image_Transform_GD()   X-Ref
Check settings

return: mixed true or  or a PEAR error object on error

load($image)   X-Ref
Load image

param: string filename
return: mixed none or a PEAR error object on error

addText($params)   X-Ref
addText

param: array   options     Array contains options
return: none

rotate($angle, $options=null)   X-Ref
Rotate image by the given angle
Uses a fast rotation algorythm for custom angles
or lines copy for multiple of 90 degrees

author: Pierre-Alain Joye
param: int       $angle      Rotation angle
param: array     $options    array(  'autoresize'=>true|false,
return: mixed none or a PEAR error object on error

_resize($new_x, $new_y)   X-Ref
Resize Action

For GD 2.01+ the new copyresampled function is used
It uses a bicubic interpolation algorithm to get far
better result.

param: $new_x int  new width
param: $new_y int  new height
return: true on success or pear error

crop($new_x, $new_y, $new_width, $new_height)   X-Ref
Crop the image

param: int $crop_x left column of the image
param: int $crop_y top row of the image
param: int $crop_width new cropped image width
param: int $crop_height new cropped image height

flip($horizontal)   X-Ref
Flip the image horizontally or vertically

param: boolean $horizontal true if horizontal flip, vertical otherwise

gamma($outputgamma=1.0)   X-Ref
Adjust the image gamma

param: float $outputgamma
return: none

save($filename, $type = '', $quality = 85)   X-Ref
Save the image file

param: $filename string  the name of the file to write to
param: $quality  int     output DPI, default is 85
param: $types    string  define the output format, default
return: none

display($type = '', $quality = 75)   X-Ref
Display image without saving and lose changes

param: string type (JPG,PNG...);
param: int quality 75
return: none

free()   X-Ref
Destroy image handle

return: none