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 Imagick(__DIR__ . '/../tmp/test.jpg'); $i->text('Hello World', 36, 10, 100, null, 10, true); $this->assertEquals(640, $i->getWidth()); }