Class CowSayImage

Description

Implements interfaces:

As CowSay but the output is an image!

As CowSay but the output is an image!

  • author: Francesco Laurita
  • version: 1.0

Located in /Fortune.class.php (line 414)

CowSay
   |
   --CowSayImage
Method Summary
CowSayImage __construct ()
void appendCopyRight (bool $b)
mixed formatFortune (string $fortune)
void setBackgroundColor (string $color)
void setFontSize (int $size)
void setTextColor (string $color)
Methods
Constructor __construct (line 424)
CowSayImage __construct ()

Redefinition of:
CowSay::__construct()
appendCopyRight (line 480)

Mmmm yes it used to add my copyRight

Mmmm yes it used to add my copyRight don't warry, is disable by default

  • access: public
void appendCopyRight (bool $b)
  • bool $b
formatFortune (line 496)

The implemented method

The implemented method Don't forget to use header("Content-type: image/png"); before call this method

  • return: the $fortune in a cow :D as image
  • access: public
  • see: iFormatFortune
mixed formatFortune (string $fortune)
  • string $fortune

Redefinition of:
CowSay::formatFortune()
The implemented method
setBackgroundColor (line 454)

You can set the background color

You can set the background color $color is a string that rappresents the color in hexdec format: es: black: 000000 white: ffffff

  • access: public
void setBackgroundColor (string $color)
  • string $color
setFontSize (line 438)

Set the font size

Set the font size

  • access: public
void setFontSize (int $size)
  • int $size
setTextColor (line 468)

You can set the text color

You can set the text color $color is a string that rappresents the color in hexdec format: es: black: 000000 white: ffffff

  • access: public
void setTextColor (string $color)
  • string $color

Inherited Methods

Inherited From CowSay

CowSay::__construct()
CowSay::findMaxLineLen()
CowSay::formatFortune()
CowSay::wrapTo()

Documentation generated on Sun, 01 Apr 2007 18:44:48 +0200 by phpDocumentor 1.3.0RC3