public function draw($text, $size=12, $x=0, $y=0)
    {

        imagettftext($this->image, $size, $this->rotation, $x, $y, $this->text_color, $this->font, $text);

        return $this->image;

    }
public function draw($text, $size=12, $x=0, $y=0)
    {

        imagettftext($this->image, $size, $this->rotation, $x, $y, $this->text_color, $this->font, $text);

        return $this->image;

    }
public function draw ( $ text , $ size = 12 , $ x = 0 , $ y = 0 ) { imagettftext ( $ this -> image , $ size , $ this -> rotation , $ x , $ y , $ this -> text_color , $ this -> font , $ text ) ; return $ this -> image ; }
Draws the text onto the image

@param string $text  The text to write on the image
@param integer $size  The font size to use
@param integer $x The x position to start draiwng on the image
@param integer $y    The y position to start drawing on the image
@return resource A png image resource that can be used by imagepng, imagegif for output
Draws the text onto the image