Revision: 23141
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 31, 2010 06:35 by dominikweber
Initial Code
//get individual text for button: $buttontext=$this->pi_getLL('submit'); $buttonimage='fileadmin/images/blank_button.gif'; $size=getimagesize($buttonimage); // get size of background-image // 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.']);
Initial URL
http://www.pi-phi.de/rendering.html
Initial Description
Initial Title
Bilder mit Text in Extensions dynamisch erzeugen (GIFBuilder, PHP)
Initial Tags
php
Initial Language
PHP