Search Results

  1. imagecolorat (PHP 4, PHP 5, PHP 7, PHP 8) imagecolorat — Get the index of the color of a pixel

    • Imagejpeg

      Parameters ¶ image A GdImage object, returned by one of the...

  2. 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.

  3. 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 ...

  4. 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.

  5. 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:

  6. Return The imagecolorat () function returns the color index or FALSE on failure.

  7. Execute imagecolorat Online. Info and examples on imagecolorat PHP Function from Image Processing and GD - Image Processing and Generation