render() public static method

Add text to an image
public static render ( mixed $image, string $text, string $fFile, array $params = [] )
$image mixed GD resource
$text string Some text to output on image as watermark
$fFile string TTF font file path
$params array Additional render params
Beispiel #1
0
 /**
  * Add text to an image
  *
  * @param mixed  $image    GD resource
  * @param string $text     Some text to output on image as watermark
  * @param string $fontFile TTF font file path
  * @param array  $params
  * @throws \JBZoo\Image\Exception
  */
 public static function text($image, $text, $fontFile, $params = array())
 {
     Text::render($image, $text, $fontFile, $params);
 }