Esempio n. 1
0
 /**
  * FormHandler::mergeImage()
  *
  * Merge a image uploaded in the given field with another image
  *
  * @param string $field: The field where the image is uploaded
  * @param string $merge: The image which we should merge
  * @param int $align: The align of the merge image (eg: left, center, right)
  * @param int $valign: The vertical align of the merge image( eg: top, middle, bottom)
  * @return void
  * @access public
  * @author Teye Heimans
  */
 function mergeImage($field, $merge, $align = 'center', $valign = 'bottom', $transparantColor = null)
 {
     require_once FH_INCLUDE_DIR . 'includes/class.ImageConverter.php';
     // is gd enabled ?
     if (!ImageConverter::GDVersion()) {
         trigger_error('Error! To use the function mergeImage you have to enable GD Libary!', E_USER_WARNING);
         return;
     }
     // save the settings
     $this->_convert[$field]['merge'][] = array($merge, $align, $valign, $transparantColor);
 }