Ajax
ASP
C,C++
C#,.NET
CSS,HTML
Delphi,Kylix
Experience
Flash
Java
JavaScript
PHP
Python
QT
SQL
ShellScript
VB
U :
P :
Register
Lost Password
Other Links
Code Archive
Save Giovanni
PHP Category Code
Real Name
:
Secure Shell
Subject
:
Making Colors Transparent with imagecolortransparent
Description
:
Making Colors Transparent with imagecolortransparent() / imagecolortransparent() fonksiyonunu kullanarak her hangi bir renge sahip imajı transparan hale getirmek ...
<?php header("Content-type: image/gif"); $image = imagecreate( 200, 200 ); $red = imagecolorallocate($image, 255,0,0); $blue = imagecolorallocate($image, 0,0,255 ); $points = array (10, 10, 190, 190, 190, 10, 10, 190 ); imagefilledpolygon( $image, $points, count( $points )/2 , $blue ); imagecolortransparent( $image, $red ); imagegif($image); ?>
Rating
:
0.00
(out of 5)
Visitor Voting Booth
:
Excellent
Very Good
Good
Fair
Poor
Copyright © 2006 SharingCode.NET . All rights reserved. Hosted By: SisNetworks