Create text within the an image object
public text ( string $str, integer | string $size, integer | string $x, integer | string $y, string $font = null, integer | string $rotate = null, boolean $stroke = false ) : |
||
$str | string | |
$size | integer | string | |
$x | integer | string | |
$y | integer | string | |
$font | string | |
$rotate | integer | string | |
$stroke | boolean | |
return |
public function testSystemText() { $i = new Gd(__DIR__ . '/../tmp/test.jpg'); $i->text('Hello World', 36, 10, 100); $this->assertEquals(640, $i->getWidth()); $i = new Gd(__DIR__ . '/../tmp/test.jpg'); $i->text('Hello World', 0, 10, 100); $this->assertEquals(640, $i->getWidth()); }