2011-06-17 3 views

Répondre

3

Essayez le code suivant

Donnez votre code couleur en fonction GD IMG_FILTER_COLORIZE

$imgname = "source.png";   
    $im = imagecreatefrompng ($imgname);    
    if($im && imagefilter($im, IMG_FILTER_COLORIZE, 137, 113, 79))    
    { 
     echo 'Image successfully shaded green.';     

     imagepng($im, 'result.png');    
     imagedestroy($im);      
    }     
    else    
    { 
     echo 'Green shading failed.'; 
    } 
Questions connexes