PHP 8.3.4 Released!

imagecolordeallocate

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

imagecolordeallocateDe-allocate a color for an image

Descrizione

imagecolordeallocate(GdImage $image, int $color): bool

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

Elenco dei parametri

image

Una risorsa immagine, restituita da una delle funzioni di creazione immagine, come imagecreatetruecolor().

color

The color identifier.

Valori restituiti

Restituisce true in caso di successo, false in caso di fallimento.

Log delle modifiche

Versione Descrizione
8.0.0 image expects a GdImage instance now; previously, a valid gd resource was expected.

Esempi

Example #1 Using imagecolordeallocate()

<?php
$white
= imagecolorallocate($im, 255, 255, 255);
imagecolordeallocate($im, $white);
?>

Vedere anche:

add a note

User Contributed Notes

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