Как мы можем изменить непрозрачность и затенение шрифта в функции imagettftext?

Я создаю текстовое изображение на заданном шаблоне, в котором все параметры являются динамическими, он работает отлично! и создание образа, как, мой php-скрипт,

<?php // To fetch template info from database $template_query = mysql_query("SELECT * FROM templates WHERE templateID = '".$fetch['templateID']."'"); $temp_data = mysql_fetch_assoc($template_query); //create and save images $temp = '../'. $temp_data['blank_templates']; //check image type $image_extension = strtolower(substr(strrchr($temp_data['blank_templates'], "."), 1)); $im = imagecreatefromjpeg($temp); $black = hexdec($temp_data['font_color']); // Replacing path by your own font path $font = '..'.$temp_data['font_file_upload']; // Break it up into pieces 125 characters long $no_of_characters_line = $temp_data['no_of_characters_line']; $lines = explode('|', wordwrap($message, $no_of_characters_line, '|')); // Starting Y position and X position $y = $temp_data['position_from_top']; $x = $temp_data['position_from_left']; $font_size = $temp_data['font_size']; $rotation_angle = $temp_data['rotation']; $line_height = $temp_data['line_height']; foreach ($lines as $line) { imagettftext($im, $font_size,$rotation_angle, $x, $y, $black, $font, $line); // Increment Y so the next line is below the previous line $y += $line_height; } $id = uniqid(); $save = '../messagesimage/'.$id. '.'.$image_extension; $path_save = substr($save, 3); // Using imagepng() results in clearer text compared with imagejpeg() imagejpeg($im,$save); imagedestroy($im); 

Который создает образ как ..! введите описание изображения здесь

Теперь я хочу добавить возможность динамического изменения прозрачности и затенения шрифтов, возможно ли это? Если да, то, пожалуйста, помогите мне сделать это ..

Заранее спасибо