Tips for using the PHP color matching function. Define the matching color. Syntax: intimagecolorallocate (intim, intred, intgreen, intblue); return value: integer function type: graphic processing PHP matching color function description: This function
Definition
Match color.
Syntax:
Int imagecolorallocate (int im, int red, int green, int blue );
Return value:
Integer
Function types:
Graphic Processing
Description of the PHP color matching function:
This function is used to match the color of the image for other drawing functions. The parameter im represents the handle of the image. The red, green, and blue parameters are the three primary colors of color. The value ranges from 0 to 255.
Example of PHP color matching function:
- < ?
- $white = imagecolorallocate
($im, 255,255,255);
- $black = imagecolorallocate
($im, 0,0,0);
- ?>
Colors match the color. Syntax: int imagecolorallocate (int im, int red, int green, int blue); return value: integer function type: Graph processing PHP matching color function content description: This function...