Class AkImageColorScheme

(line 21)

Description

AkObject
   |
   --AkImageColorScheme

Located in File: /AkImage/AkImageColorScheme.php

Allows for __construct and __destruct to be used in PHP4.

A hack to support __construct() on PHP 4 Hint: descendant classes have no PHP4 class_name() constructors, so this one gets called first and calls the top-layer __construct() which (if present) should call parent::__construct()



Class Variables

Summary:
mixed $Image
mixed $_tmp_file

$calculate_negatives = true (line 24)

Data type : mixed

$Image (line 26)

Data type : mixed

$minimum_hits_for_negative = 50 (line 25)

Data type : mixed

$number_of_colors = 12 (line 23)

Data type : mixed

$_frequentColors = array() (line 28)

Data type : mixed

$_tmp_file (line 27)

Data type : mixed

Class Constants

Summary:

Method Detail

Summary:
void __destruct ()
void getColorScheme ([ $number_of_colors = null])
void getFrequentColors ([ $number_of_colors = null])
void setImage ( $image_path)
void _addToFrequentColors ( $hex_color)
void _getColorsFromCounterColorArray ( $colors_array, [ $number_of_colors = null])
void _getNegativeAsHex ( $red,  $green,  $blue)
void _rgbToHex ( $rgb)

Destructor __destruct (line 38)

void __destruct( )

Overrides : AkObject::__destruct() Class destructor, overriden in descendant classes

Info

Method getColorScheme (line 45)

void getColorScheme( [ $number_of_colors = null])

Parameters

  • $number_of_colors:

Info

Method getFrequentColors (line 104)

void getFrequentColors( [ $number_of_colors = null])

Parameters

  • $number_of_colors:

Info

Method resetFrequentColors (line 99)

void resetFrequentColors( )

Info

Method setImage (line 30)

void setImage( $image_path)

Parameters

  • $image_path:

Info

Method _addToFrequentColors (line 94)

void _addToFrequentColors( $hex_color)

Parameters

  • $hex_color:

Info

Method _getColorsFromCounterColorArray (line 79)

void _getColorsFromCounterColorArray( $colors_array, [ $number_of_colors = null])

Parameters

  • $colors_array:
  • $number_of_colors:

Info

Method _getNegativeAsHex (line 88)

void _getNegativeAsHex( $red, $green, $blue)

Parameters

  • $red:
  • $green:
  • $blue:

Info

Method _rgbToHex (line 109)

void _rgbToHex( $rgb)

Parameters

  • $rgb:

Info

Inherited Variables

Inherited Class Variable Summary

Inherited Methods

Inherited Method Summary

Inherited From Class AkObject

AkObject::AkObject() - A hack to support __construct() on PHP 4

AkObject::__construct() - Class constructor, overriden in descendant classes

AkObject::freeMemory() - Unsets circular reference children that are not freed from memory when calling unset() or when the parent object is garbage collected.

AkObject::log() -

AkObject::toString() - Object-to-string conversion

AkObject::__clone() - Clone class (Zend Engine 2 compatibility trick)

AkObject::__destruct() - Class destructor, overriden in descendant classes

AkObject::__toString() -



Documentation generated on Tue, 17 Jun 2008 14:25:42 +0200 by phpDocumentor 1.3.2