De-allocate a color for an image in PHP

Description

The following code shows how to de-allocate a color for an image.

Example


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




















Home »
  PHP Tutorial »
    Image »




Color
Create
Font
Operation
Shape
Text