Class Klutz_Image

Description

Klutz Image Class

$Horde: klutz/lib/Image.php,v 1.18 2006/10/29 18:28:08 chuck Exp $

Located in /lib/Image.php (line 10)


	
			
Variable Summary
 string $data
 string $file
 integer $height
 integer $lastmodified
 string $size
 string $type
 integer $width
Method Summary
 Klutz_Image Klutz_Image (string $image, [string $type = null], [integer $height = null], [integer $width = null])
Variables
string $data = null (line 24)

The image data itself (binary)

string $file = null (line 17)

The name of the file the image is stored in (if it's stored locally)

integer $height = null (line 31)

The height of the image in pixels

integer $lastmodified = 0 (line 60)

The last modified time of the file (only used if file is local).

string $size = null (line 53)

The attributes to use in an <img> tag to define the size (e.g. height="120" width="400")

string $type = null (line 45)

The mime type of the image

integer $width = null (line 38)

The width of the image in pixels

Methods
Constructor Klutz_Image (line 73)

Constructor - Based on the information passed, loads an image, determines the size and type, etc., and stores the information in the various public properties. Any optional parameters not passed in are calculated to the best of our ability.

Klutz_Image Klutz_Image (string $image, [string $type = null], [integer $height = null], [integer $width = null])
  • string $image: Either raw image data or a filename
  • string $type: Image MIME type (e.g. image/jpeg)
  • integer $height: Height of the image in pixels
  • integer $width: Width of the image in pixels

Documentation generated on Sun, 30 Jan 2011 05:30:35 +0000 by phpDocumentor 1.4.3