[ Index ]
 

Code source de CMS made simple 1.0.5

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/filemanager/ImageManager/Classes/ -> GD.php (sommaire)

(pas de description)

Poids: 508 lignes (17 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

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


Classe: 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



Généré le : Tue Apr 3 18:50:37 2007 par Balluche grâce à PHPXref 0.7