/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//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.']);
URL: http://www.pi-phi.de/rendering.html