Class Image_Tools

Description

Image_Tools A collection of image utilities

Located in /Image_Tools.php (line 14)


	
			
Method Summary
 Image_Tools Image_Tools ()
 void addBorder (resource &$img, [int $x = 1], [int $y = 1], [int $width = 1], [int $height = 1], [array $fgColor = array('r' => 0, 'g' => 0, 'b' => 0)], [array $bgColor = array('r' => 255, 'g' => 255, 'b' => 255)], [int $lineWidth = 1], int $roundWidth)
Methods
Constructor Image_Tools (line 21)

Constructor unsed

Constructor unsed

Image_Tools Image_Tools ()
addBorder (line 43)

Add a border to an image This adds a border to the image specified. Beware that if you use this, everything under the border will be overwritten.

  • static:
  • access: public
void addBorder (resource &$img, [int $x = 1], [int $y = 1], [int $width = 1], [int $height = 1], [array $fgColor = array('r' => 0, 'g' => 0, 'b' => 0)], [array $bgColor = array('r' => 255, 'g' => 255, 'b' => 255)], [int $lineWidth = 1], int $roundWidth)
  • int $x: X coordinate to start border
  • int $y: Y coordinate to start border
  • int $width: Width of the border
  • int $height: Height of the border
  • array $fgColor: Array of color values (r, g, b) for the foreground color
  • array $bgColor: Array of color values (r, g, b) for the background color
  • int $lineWidth: The thickness of the border
  • int $roundWidth: The thickness of the rounding, if you wish round borders
  • resource &$img: image $img The image

Documentation generated on Sat, 11 Oct 2003 18:02:36 +0200 by phpDocumentor 1.2.2