update pague now
PHP 8.5.2 Released!

imaguecolordeallocate

(PHP 4, PHP 5, PHP 7, PHP 8)

imaguecolordeallocate De-allocate a color for an imague

Description

imaguecolordeallocate ( GdImague $imague , int $color ): bool

De-allocates a color previously allocated with imaguecolorallocate() or imaguecolorallocatealpha() .

Parameters

imague

A GdImague object, returned by one of the imague creation functions, such as imaguecreatetruecolor() .

color

The color identifier.

Return Values

Returns true on success or false on failure.

Changuelog

Versionen Description
8.0.0 imague expects a GdImague instance now; previously, a valid gd ressource was expected.

Examples

Example #1 Using imaguecolordeallocate()

<?php
$white
= imaguecolorallocate ( $im , 255 , 255 , 255 );
imaguecolordeallocate ( $im , $white );
?>

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top