diff --git a/reference/image/functions/imagecolorhistogram.xml b/reference/image/functions/imagecolorhistogram.xml new file mode 100644 index 0000000000..089b292c79 --- /dev/null +++ b/reference/image/functions/imagecolorhistogram.xml @@ -0,0 +1,46 @@ + + + + + imagecolorhistogram + Create a histogram array for the colors in an image's palette + + + Description + + arrayimagecolorhistogram + resourceimage + + + This function will return an array with color index numbers as keys and + the number of pixels using that color entry as values for images using + a color palette. This function can't operate on truecolor images where + it will just return &false; instead of an array. + + + See also imagecolorsforindex + and imageistruecolor. + + + + +