PHP: imagecolordeallocate - Manual

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

search for in the

imagecolorexact imagecolorclosesthwb

Last updated: Sat, 27 Jan 2007

view this page in

# imagecolordeallocate

(PHP 3 >= 3.0.6, PHP 4, PHP 5)

imagecolordeallocate -- De-allocate a color for an image

## Описание

bool imagecolordeallocate ( resource image, int color )

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

## Список параметров

`image`

  An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().

`color`

  The color identifier

## Возвращаемые значения

Возвращает `TRUE` в случае успешного завершения или `FALSE` в случае возникновения ошибки.

## Примеры

Пример 1. Using imagecolordeallocate()

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

## Смотрите также

imagecolorallocate()
imagecolorallocatealpha()

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

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST