Adding Transparency : imagecolortransparent « Graphics Image « PHP






Adding Transparency

 
<?
    $image = imagecreatetruecolor(400,400);

    $black = imagecolorallocate($image, 0, 0, 0);
    imagecolortransparent($image, $black);
?>
  
  








Related examples in the same category

1.Making Colors Transparent with imagecolortransparent()
2.Using Brushes