예제 #1
0
 /**
  * @param resource $image
  * @param QuarkFile $file
  *
  * @return resource
  */
 public function GDAction($image, QuarkFile $file)
 {
     if (!$this->_color) {
         return $image;
     }
     imagettftext($image, $this->_size, $this->_position->angle, $this->_position->x, $this->_position->y, $this->_color->Allocate($image), $this->_font, $this->_text);
     $this->_color->Deallocate($image);
     return $image;
 }