Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function annotate($text, $coordX, $coordY, $angle, Drawer $drawer)
 {
     $color = GDPixel::load($drawer->getFontColor(), $this->getResource());
     return imagettftext($this->getResource(), $this->getFontSize($drawer), $angle, $coordX, $coordY, $color, $drawer->getFont(), $text);
 }
Exemple #2
0
 /**
  * Check that colours can be created with static load command
  * @dataProvider colorTestValues
  */
 public function testCreateGDPixelByStaticLoadColorString($hexColor, $r, $g, $b)
 {
     $gdPixel = GDPixel::load($hexColor, imagecreate(1, 1));
     $this->assertNotSame(false, $gdPixel);
 }