Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
imagecolorallocate() function in PHP
The imagecolorallocate() function allocates a color for an image.
Syntax
int imagecolorallocate ( $img, $red, $green, $blue )
Parameters
img: Image resource created with imagecreatetruecolor().
red: Red color component
green: Green color component
blue: Blue color component
Return
The imagecolorallocate() function returns a color in RGB format.
Example
The following is an example:
Output
The following is the output:

Advertisements
