扩展dynamisch-erzeugen中的Bilder mit文本(GIFBuilder,PHP)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了扩展dynamisch-erzeugen中的Bilder mit文本(GIFBuilder,PHP)相关的知识,希望对你有一定的参考价值。
//get individual text for button: $buttontext=$this->pi_getLL('submit'); $buttonimage='fileadmin/images/blank_button.gif'; // define the whole Image $ts['img']='IMAGE'; //optional $ts['img.']['file']='GIFBUILDER'; $ts['img.']['file.']['format']='gif'; $ts['img.']['file.']['XY']=$size[0].','.$size[1]; // use original size $ts['img.']['file.']['altText']=$buttontext; $ts['img.']['file.']['titleText']=$buttontext; // insert background-image $ts['img.']['file.']['1']='IMAGE'; $ts['img.']['file.']['1.']['file']=$buttonimage; // insert text $ts['img.']['file.']['10']='TEXT'; $ts['img.']['file.']['10.']['text']=$buttontext; // style textappearance $ts['img.']['file.']['10.']['fontSize']='12'; $ts['img.']['file.']['10.']['fontFile']='fileadmin/fonts/arial.ttf'; $ts['img.']['file.']['10.']['fontColor']='#666666'; $ts['img.']['file.']['10.']['offset']='22,14'; //render to img-tag: $img=$this->cObj->IMAGE($ts['img.']);
以上是关于扩展dynamisch-erzeugen中的Bilder mit文本(GIFBuilder,PHP)的主要内容,如果未能解决你的问题,请参考以下文章