[ 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/ -> IM.php (sommaire)

(pas de description)

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

Définit 1 class

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


Classe: Image_Transform_Driver_IM  - X-Ref

Image_Transform_Driver_IM()   X-Ref
Pas de description

load($image)   X-Ref
Load image

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

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

param: int   new_x   new width
param: int   new_y   new height
return: none

crop($crop_x, $crop_y, $crop_width, $crop_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

rotate($angle, $options=null)   X-Ref
rotate

param: int     angle   rotation angle
param: array   options no option allowed

addText($params)   X-Ref
addText

param: array   options     Array contains options
return: none

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  quality image dpi, default=75
param: $type     string  (JPG,PNG...)
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