From 8605f83d13cc87414ba0aca18049a8c37155cc9d Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 27 Jul 2004 16:08:13 +0000 Subject: [PATCH] Color must be present in the image (bug #21668) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@164463 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/image/functions/imagecolorclosest.xml | 6 +++++- reference/image/functions/imagecolorexact.xml | 6 +++++- reference/image/functions/imagecolorresolve.xml | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/reference/image/functions/imagecolorclosest.xml b/reference/image/functions/imagecolorclosest.xml index 7bf5a02f7b..97976ebc25 100644 --- a/reference/image/functions/imagecolorclosest.xml +++ b/reference/image/functions/imagecolorclosest.xml @@ -1,5 +1,5 @@ - + @@ -24,6 +24,10 @@ palette is calculated as if the RGB values represented points in three-dimensional space. + + If you created the image from a file, only colors used in the image are + resolved. Colors present only in the pallete are not resolved. + See also imagecolorexact. diff --git a/reference/image/functions/imagecolorexact.xml b/reference/image/functions/imagecolorexact.xml index e20f7b3bab..56578fa716 100644 --- a/reference/image/functions/imagecolorexact.xml +++ b/reference/image/functions/imagecolorexact.xml @@ -1,5 +1,5 @@ - + @@ -23,6 +23,10 @@ If the color does not exist in the image's palette, -1 is returned. + + If you created the image from a file, only colors used in the image are + resolved. Colors present only in the pallete are not resolved. + See also imagecolorclosest. diff --git a/reference/image/functions/imagecolorresolve.xml b/reference/image/functions/imagecolorresolve.xml index 91980d39e9..b7a40a978d 100644 --- a/reference/image/functions/imagecolorresolve.xml +++ b/reference/image/functions/imagecolorresolve.xml @@ -1,5 +1,5 @@ - + @@ -23,6 +23,10 @@ requested color, either the exact color or the closest possible alternative. + + If you created the image from a file, only colors used in the image are + resolved. Colors present only in the pallete are not resolved. + See also imagecolorclosest.