text() public méthode

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 ) : Imagick
$str string
$size integer | string
$x integer | string
$y integer | string
$font string
$rotate integer | string
$stroke boolean
Résultat Imagick
Exemple #1
0
 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());
 }