//create from a the image so we can use fade out. $gradient_line = imagecreatetruecolor($imgName_w, 1);
// Next we draw a GD line into our gradient_line imageline ($gradient_line, 0, 0, $imgName_w, 0, $gdGradientColor);
$i = 0; $transparency = 30; //from 0 - 100
while ($i < $gradientHeight){ //create line by line changing as we go imagecopymerge ($background, $gradient_line, 0,$gradient_y_startpoint, 0, 0, $imgName_w, 1, $transparency); ++$i; ++$gradient_y_startpoint;
if ($transparency == 100){ $transparency = 100; }else{ // this will determing the height of the //reflection. The higher the number, the smaller the reflection. //1 being the lowest(highest reflection) $transparency = $transparency + 1; } }
imagejpeg($output, NULL, 100); //100 being the quality of image 100 Max(Best) imagedestroy($background); imagedestroy($gradient_line); imagedestroy($newImage); imagedestroy($output);
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.