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

(no description)

File Size: 234 lines (8 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_IM:: (11 methods):
  Image_Transform_Driver_IM()
  load()
  _resize()
  crop()
  flip()
  rotate()
  addText()
  gamma()
  save()
  display()
  free()


Class: Image_Transform_Driver_IM  - X-Ref

Image_Transform_Driver_IM()   X-Ref
No 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