text() public method

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
return Imagick
コード例 #1
0
ファイル: ImagickTest.php プロジェクト: nicksagona/PopPHP
 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());
 }