I got output : my code is
public function creatorparam(){
$bg_color="FF8640";
$text_color="C7FFE3";
$button_width =120;
$button_height =90;
$r_bg = hexdec("0x".substr($bg_color,0,2));
$g_bg = hexdec("0x".substr($bg_color,2,2));
$b_bg = hexdec("0x".substr($bg_color,4,2));
$r_bgt = hexdec("0x".substr($text_color,0,2));
$g_bgt = hexdec("0x".substr($text_color,2,2));
$b_bgt = hexdec("0x".substr($text_color,4,2));
header('content-type: image/png');
$image = imagecreate($button_width, $button_height);
$blue = imagecolorallocate($image, $r_bg, $g_bg, $b_bg);
$red = imagecolorallocate($image, $r_bgt, $g_bgt, $b_bgt);
imagestring($image,18,0,0,$textdisplay,$red);
imagepng($image);
imagedestroy($image);
}