Pluf_Image Class Reference

List of all members.

Public Member Functions

 __construct ($source)
 asPng ($output)
 saveAs ($output, $type='png')

Public Attributes

 $source = ''

Protected Attributes

 $dir = ''
 $filename = ''


Detailed Description

Image object to wrap some simple convertion operations.

Complex operations should be performed with the gd functions directly.


Constructor & Destructor Documentation

Pluf_Image::__construct ( source  ) 

Init the image class.


Member Function Documentation

Pluf_Image::asPng ( output  ) 

Convert the image as a png file.

Parameters:
string Output file.

Pluf_Image::saveAs ( output,
type = 'png' 
)

Convert the image as a given type.

Types are 'gif', 'jpg' or 'png'

Parameters:
string Output file.
string Type.


Member Data Documentation

Pluf_Image::$dir = '' [protected]

Path to the thumbnail folder.

Pluf_Image::$filename = '' [protected]

Filename of the last created thumbnail.

Pluf_Image::$source = ''

Full path to the source file.


The documentation for this class was generated from the following file:

Generated on Wed Feb 3 15:44:52 2010 for Pluf by  doxygen