Making Colors Transparent with imagecolortransparent() : Transparent : Graphics Image PHP Source Code


PHP Source Code » Graphics Image » Transparent »

 

Making Colors Transparent with imagecolortransparent()



<?php
header("Content-type: image/gif");

$image = imagecreate200200 );
$red = imagecolorallocate($image, 255,0,0);
$blue = imagecolorallocate($image, 0,0,255 );
$points = array (1010,
                 190190,
                 19010,
                 10190
);

imagefilledpolygon$image, $points, count$points )/, $blue );
imagecolortransparent$image, $red );
imagegif($image);
?>


           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Graphics Image
» Transparent