PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

imagecolorexact> <imagecolorclosesthwb
Last updated: Fri, 14 Nov 2008

view this page in

imagecolordeallocate

(PHP 4, PHP 5)

imagecolordeallocateDe-allocate a color for an image

Описание

bool imagecolordeallocate ( resource $image , int $color )

De-allocates a color previously allocated with imagecolorallocate() or imagecolorallocatealpha().

Параметри

image

Ресурс на изображение, върнат от някоя от функциите за създаване на изображения като например imagecreatetruecolor().

color

The color identifier.

Връщани стойности

Връща TRUE при успех или FALSE при неуспех.

Примери

Example #1 Using imagecolordeallocate()

<?php
$white 
imagecolorallocate($im255255255);
imagecolordeallocate($im$white);
?>



add a note add a note User Contributed Notes
imagecolordeallocate
There are no user contributed notes for this page.

imagecolorexact> <imagecolorclosesthwb
Last updated: Fri, 14 Nov 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites