rendered paste body function makeTextImage($text, $size, $font, $color, $width, $bgColor = "white", $align = 'left') {
$lines = $this->text_to_lines($text, t3lib_div::freetypeDpiComp($size), t3lib_stdGraphic::prependAbsolutePath($font), $width);
$lineCount = count($lines);
$gifObjArray['backColor'] = $bgColor;
$gifObjArray['transparentBackground'] = 1;
$gifObjArray['reduceColors'] = '';
$gifObjArray['XY'] = $width.','.(5+$lineCount * $size);
for($textLine = 1; $textLine < $lineCount+1; $textLine++) {
$gifObjArray[$textLine.'0'] = 'TEXT';
$gifObjArray[$textLine.'0.']['text'] = $lines[$textLine-1];
$gifObjArray[$textLine.'0.']['niceText'] = 1;
$gifObjArray[$textLine.'0.']['antiAlias'] = 1;
// $gifObjArray[$textLine.'0.']['shadow']['offset'] = array(1,1);
// $gifObjArray[$textLine.'0.']['shadow']['blur'] = 5;
// $gifObjArray[$textLine.'0.']['shadow']['opacity'] = 40;
$gifObjArray[$textLine.'0.']['align'] = $align;
$gifObjArray[$textLine.'0.']['fontSize'] = $size;
$gifObjArray[$textLine.'0.']['fontFile'] = $font;
$gifObjArray[$textLine.'0.']['fontColor'] = $color;
$gifObjArray[$textLine.'0.']['offset'] = '1,'.($textLine * $size);
}
$textImageArray = $this->cObj->getImgResource('GIFBUILDER', $gifObjArray);
return $textImageArray;
}