imagecolordeallocate
(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().
매개변수
- font
-
내장 글꼴 1, 2, 3, 4, 5(큰 숫자가 큰 글꼴)나 imageloadfont()로 등록한 글꼴 식별자를 사용할 수 있습니다.
- color
-
The color identifier
반환값
성공할 경우 TRUE를, 실패할 경우 FALSE를 반환합니다.
예제
Example#1 Using imagecolordeallocate()
<?php
$white = imagecolorallocate($im, 255, 255, 255);
imagecolordeallocate($im, $white);
?>