Search Results
imagecolorat (PHP 4, PHP 5, PHP 7, PHP 8) imagecolorat — Get the index of the color of a pixel
- Getimagesize
Caution This function expects filename to be a valid image...
- Imagecreatefromjpeg
imagecreatefromjpeg () returns an image identifier...
- Imagejpeg
Parameters ¶ image A GdImage object, returned by one of the...
- Getimagesize
Jul 11, 2025 · The imagecolorat () function is an inbuilt function in PHP which is used to get the index of the color of the pixel. This function returns the pixel value at the specified location.
Description int imagecolorat ( resource image, int x, int y) Returns the index of the color of the pixel at the specified location in the image specified by image. If PHP is compiled against GD library 2.0 or higher and the image is a truecolor image, this function returns the RGB value of that pixel as integer. Use bitshifting and masking to access the distinct red, green and blue component ...
Cette fonction peut retourner false, mais elle peut aussi retourner une valeur équivalent à false. Veuillez lire la section sur les booléens pour plus d'informations. Utilisez l'opérateur === pour tester la valeur de retour exacte de cette fonction.
Returns the index of the color of the pixel at the specified location in the image specified by image . If PHP is compiled against GD library 2.0 or higher and the image is a truecolor image, this function returns the RGB value of that pixel as integer. Use bitshifting and masking to access the distinct red, green and blue component values:
Return The imagecolorat () function returns the color index or FALSE on failure.
Execute imagecolorat Online. Info and examples on imagecolorat PHP Function from Image Processing and GD - Image Processing and Generation
