Overview

Packages

  • Image
  • None

Classes

  • Horde_Image
  • Horde_Image_Base
  • Horde_Image_Effect
  • Horde_Image_Effect_Border
  • Horde_Image_Effect_Gd_DropShadow
  • Horde_Image_Effect_Gd_RoundCorners
  • Horde_Image_Effect_Gd_TextWatermark
  • Horde_Image_Effect_Gd_Unsharpmask
  • Horde_Image_Effect_Im_Border
  • Horde_Image_Effect_Im_CenterCrop
  • Horde_Image_Effect_Im_Composite
  • Horde_Image_Effect_Im_DropShadow
  • Horde_Image_Effect_Im_LiquidResize
  • Horde_Image_Effect_Im_PhotoStack
  • Horde_Image_Effect_Im_PolaroidImage
  • Horde_Image_Effect_Im_RoundCorners
  • Horde_Image_Effect_Im_TextWatermark
  • Horde_Image_Effect_Im_Unsharpmask
  • Horde_Image_Effect_Imagick_Border
  • Horde_Image_Effect_Imagick_CenterCrop
  • Horde_Image_Effect_Imagick_Composite
  • Horde_Image_Effect_Imagick_DropShadow
  • Horde_Image_Effect_Imagick_LiquidResize
  • Horde_Image_Effect_Imagick_PhotoStack
  • Horde_Image_Effect_Imagick_PolaroidImage
  • Horde_Image_Effect_Imagick_RoundCorners
  • Horde_Image_Effect_Imagick_SmartCrop
  • Horde_Image_Effect_Imagick_TextWatermark
  • Horde_Image_Effect_Imagick_Unsharpmask
  • Horde_Image_Exception
  • Horde_Image_Exif
  • Horde_Image_Exif_Base
  • Horde_Image_Exif_Bundled
  • Horde_Image_Exif_Exiftool
  • Horde_Image_Exif_Parser_Base
  • Horde_Image_Exif_Php
  • Horde_Image_Gd
  • Horde_Image_Im
  • Horde_Image_Imagick
  • Horde_Image_Png
  • Horde_Image_Svg
  • Horde_Image_Swf
  • Horde_Image_Translation
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Image

This class provides some utility functions, such as generating highlights of a color as well as a factory method responsible for creating a concrete Horde_Image driver.

Copyright 2002-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Package: Image
Author: Chuck Hagenbuch chuck@horde.org
Author: Michael J. Rubinsky mrubinsk@horde.org
Located at Horde/Image.php
Methods summary
public static string
# modifyColor( string $color, string $factor = 0x11 )

Calculate a lighter (or darker) version of a color.

Calculate a lighter (or darker) version of a color.

Parameters

$color
An HTML color, e.g.: #ffffcc.
$factor
TODO

Returns

string
A modified HTML color.
public static string
# moreIntenseColor( string $color, string $factor = 0x11 )

Calculate a more intense version of a color.

Calculate a more intense version of a color.

Parameters

$color
An HTML color, e.g.: #ffffcc.
$factor
TODO

Returns

string
A more intense HTML color.
public static integer
# brightness( string $color )

Returns the brightness of a color.

Returns the brightness of a color.

Parameters

$color
An HTML color, e.g.: #ffffcc.

Returns

integer
The brightness on a scale of 0 to 255.
public static
# grayscaleValue( mixed $r, mixed $g, mixed $b )
public static
# grayscalePixel( mixed $originalPixel )
public static array
# getColor( string $color )

Normalizes an HTML color.

Normalizes an HTML color.

Parameters

$color
An HTML color, e.g.: #ffffcc or #ffc.

Returns

array
Array with three elements: red, green, and blue.
public static array
# getRGB( string $colorname )

Get the RGB value for a given colorname.

Get the RGB value for a given colorname.

Parameters

$colorname
The colorname

Returns

array
An array of RGB values.
public static string
# getHexColor( string $colorname )

Get the hex representation of the given colorname.

Get the hex representation of the given colorname.

Parameters

$colorname
The colorname

Returns

string
The hex representation of the color.
public static array
# circlePoint( float $degrees, integer $diameter )

Get an x,y pair on circle, assuming center is 0,0.

Get an x,y pair on circle, assuming center is 0,0.

Parameters

$degrees
The degrees of arc to get the point for.
$diameter
The diameter of the circle.

Returns

array
(x coordinate, y coordinate) of the point.
public static array
# arcPoints( integer $r, integer $start, integer $end )

Get point coordinates at the limits of an arc. Only valid for angles ($end - $start) <= 45 degrees.

Get point coordinates at the limits of an arc. Only valid for angles ($end - $start) <= 45 degrees.

Parameters

$r
The radius of the arc.
$start
The starting angle.
$end
The ending angle.

Returns

array
The start point, end point, and anchor point.
public static
# getFontSize( mixed $fontsize )

Return point size for font

Return point size for font

API documentation generated by ApiGen