Class Horde_Image_png

Description

This class implements the Horde_Image:: API for PNG images. It mainly provides some utility functions, such as the ability to make pixels or solid images for now.

$Horde: framework/Image/Image/png.php,v 1.19.10.12 2009/01/06 15:23:12 jan Exp $

Copyright 2003-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Located in /Image/Image/png.php (line 21)

Horde_Image
   |
   --Horde_Image_png
Variable Summary
 integer $_colorDepth
 integer $_colorType
 integer $_filterMethod
 array $_img
Method Summary
 Horde_Image_png Horde_Image_png ( $params)
 void getContentType ()
 string raw ()
 void rectangle (integer $x, integer $y, integer $width, integer $height, [string $color = 'black'], [string $fill = 'none'])
 void reset ()
 void _Adler32 ( $input)
 void _header ()
 void _IDAT ()
 void _IEND ()
 void _IHDR ()
 void _tEXt ( $keyword,  $text)
 void _tIME ([ $date = null])
Variables
integer $_colorDepth = 8 (line 35)

Color depth (only 8 and 16 implemented).

integer $_colorType = 2 (line 42)

Color type (only 2 (true color) implemented).

integer $_compressionMethod = 0 (line 49)

Compression method (0 is the only current valid value).

integer $_filterMethod = 0 (line 56)

Filter method (0 is the only current valid value).

array $_img = array() (line 28)

The array of pixel data.

integer $_interlaceMethod = 0 (line 63)

Interlace method (only 0 (no interlace) implemented).

Inherited Variables

Inherited from Horde_Image

Horde_Image::$_background
Horde_Image::$_capabilities
Horde_Image::$_data
Horde_Image::$_height
Horde_Image::$_loadedEffects
Horde_Image::$_observers
Horde_Image::$_rgb
Horde_Image::$_tmpdir
Horde_Image::$_type
Horde_Image::$_width
Methods
Constructor Horde_Image_png (line 68)

PNG image constructor.

Horde_Image_png Horde_Image_png ( $params)
  • $params
getContentType (line 77)
void getContentType ()
raw (line 87)

Return the raw data for this image.

  • return: The raw image data.
string raw ()

Redefinition of:
Horde_Image::raw()
Returns the raw data for this image.
rectangle (line 122)

Draw a rectangle.

void rectangle (integer $x, integer $y, integer $width, integer $height, [string $color = 'black'], [string $fill = 'none'])
  • integer $x: The left x-coordinate of the rectangle.
  • integer $y: The top y-coordinate of the rectangle.
  • integer $width: The width of the rectangle.
  • integer $height: The height of the rectangle.
  • string $color: The line color of the rectangle.
  • string $fill: The color to fill the rectangle with.
reset (line 106)

Reset the image data.

void reset ()

Redefinition of:
Horde_Image::reset()
Reset the image data.
_Adler32 (line 234)

Calculate an Adler32 checksum for a string.

void _Adler32 ( $input)
  • $input
_header (line 147)

Create the PNG file header.

void _header ()
_IDAT (line 173)

Create Image Data block.

void _IDAT ()
_IEND (line 164)

Create IEND block.

void _IEND ()
_IHDR (line 155)

Create Image Header block.

void _IHDR ()
_tEXt (line 212)

Create tEXt block.

void _tEXt ( $keyword,  $text)
  • $keyword
  • $text
_tIME (line 221)

Create last modified time block.

void _tIME ([ $date = null])
  • $date

Inherited Methods

Inherited From Horde_Image

 Horde_Image::Horde_Image()
 Horde_Image::addEffect()
 Horde_Image::addObserver()
 Horde_Image::applyEffects()
 Horde_Image::brightness()
 Horde_Image::brush()
 Horde_Image::display()
 Horde_Image::factory()
 Horde_Image::getCapabilities()
 Horde_Image::getDimensions()
 Horde_Image::getHexColor()
 Horde_Image::getLink()
 Horde_Image::getLoadedEffects()
 Horde_Image::getRGB()
 Horde_Image::hasCapability()
 Horde_Image::headers()
 Horde_Image::loadFile()
 Horde_Image::loadString()
 Horde_Image::modifyColor()
 Horde_Image::moreIntenseColor()
 Horde_Image::notifyObservers()
 Horde_Image::raw()
 Horde_Image::reset()
 Horde_Image::singleton()
 Horde_Image::toFile()

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