Tips for using PHP color matching function_PHP tutorial

WBOY
Release: 2016-07-15 13:33:36
Original
1114 people have browsed it

Define

matching colors.

Syntax:

int imagecolorallocate(int im, int red, int green, int blue);

Return value:

Integer

Function type:

Graphics processing

PHP matching color function content description:

This function is used to match the color of graphics and can be used by other drawing functions. The parameter im represents the handle of the graphic. The parameters red, green, and blue are the three primary colors, and their values ​​range from 0 to 255.

Example of using PHP color matching function:

<ol class="dp-xml"><li class="alt"><span><span class="tag"><</span><span> ?  </span></span></li><li><span>$</span><span class="attribute">white</span><span> = </span><span class="attribute-value">imagecolorallocate<br /></span><span>($im, 255,255,255);  </span></li><li class="alt"><span>$</span><span class="attribute">black</span><span> = </span><span class="attribute-value">imagecolorallocate<br /></span><span>($im, 0,0,0);  </span></li><li><span class="tag">?></span><span> </span></span></li></ol>
Copy after login

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446058.htmlTechArticleDefine matching color. Syntax: int imagecolorallocate(int im, int red, int green, int blue); Return value: Integer Function type: Graphics processing PHP matching color function Content description: This function...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template