imagecolordeallocate

(PHP 4, PHP 5, PHP 7)

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

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