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

(no description)

File Size: 257 lines (9 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_NetPBM:: (12 methods):
  Image_Transform_Driver_NetPBM()
  load()
  _resize()
  crop()
  rotate()
  flip()
  gamma()
  addText()
  _postProcess()
  save()
  display()
  free()


Class: Image_Transform_Driver_NetPBM  - X-Ref

Image_Transform_Driver_NetPBM()   X-Ref
Class Constructor


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
Resizes the image

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

rotate($angle)   X-Ref
Rotates the image

param: int $angle The angle to rotate the image through

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

addText($params)   X-Ref
adds text to an image

param: array   options     Array contains options
return: none

_postProcess($type, $quality, $save_type)   X-Ref
No description

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

param: $filename string the name of the file to write to
param: string $type (jpeg,png...);
param: int $quality 75
return: none

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

param: string $type (jpeg,png...);
param: int $quality 75
return: none

free()   X-Ref
Destroy image handle

return: none