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

Create thumbnails.

Author: $Author$
Version: $Id$
File Size: 125 lines (2 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 1 file
 mambots/editors/mostlyce/jscripts/tiny_mce/imagemanager/Classes/Transform.php

Defines 1 class

Thumbnail:: (4 methods):
  Thumbnail()
  createThumbnail()
  save()
  free()


Class: Thumbnail  - X-Ref

Thumbnail creation

Thumbnail($width=96, $height=96)   X-Ref
Create a new Thumbnail instance.

param: int $width thumbnail width
param: int $height thumbnail height

createThumbnail($file, $thumbnail=null)   X-Ref
Create a thumbnail.

param: string $file the image for the thumbnail
param: string $thumbnail if not null, the thumbnail will be saved
return: boolean true if thumbnail is created, false otherwise

save($file)   X-Ref
Save the thumbnail file.

param: string $file file name to be saved as.

free()   X-Ref
Free up the graphic driver resources.