自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

PHP匹配顏色函數(shù)的使用技巧

開發(fā) 后端
PHP匹配顏色函數(shù)的語法為 int imagecolorallocate(int im, int red, int green, int blue);可以為我們用來匹配圖形的顏色。

PHP匹配顏色函數(shù)為imagecolorallocate,許多PHP程序員們在處理圖形的時候,經(jīng)常會用到這一函數(shù)。下面我們就為大家具體介紹這一函數(shù)的相關(guān)用法。#t#

定義

匹配顏色。

語法:

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

返回值:

整數(shù)

函數(shù)種類:

圖形處理

PHP匹配顏色函數(shù)內(nèi)容說明:

本函數(shù)用來匹配圖形的顏色,供其它繪圖函數(shù)使用。參數(shù) im 表示圖形的 handle。參數(shù) red、green、blue 是色彩三原色,其值從 0 至 255。

PHP匹配顏色函數(shù)使用范例:

  1. < ?  
  2. $white = imagecolorallocate
    ($im, 255,255,255);  
  3. $black = imagecolorallocate
    ($im, 0,0,0);  
  4. ?> 
責任編輯:曹凱 來源: 搜狐博客
相關(guān)推薦

2009-11-30 09:21:39

PHP函數(shù)rmdir(

2009-12-01 10:50:45

PHP函數(shù)requir

2009-11-27 09:30:58

PHP函數(shù)mb_str

2009-12-08 13:07:57

PHP函數(shù)mt_sra

2009-12-07 10:54:46

PHP uploade

2009-12-07 14:29:08

PHP array_w

2009-12-01 14:26:19

PHP函數(shù)ob_sta

2009-12-02 13:53:12

PHP使用技巧

2009-12-04 10:19:11

PHP hack

2009-12-11 14:16:13

PHP獲取字段長度

2009-12-08 09:51:10

PHP intval函

2009-12-08 14:00:11

PHP函數(shù)microt

2009-12-11 10:59:48

PHP函數(shù)extrac

2009-11-30 15:10:46

PHP substr函

2009-11-25 17:28:26

PHP對話

2009-11-23 18:47:51

PHP中用header

2009-12-01 19:23:22

PHP緩存技術(shù)

2009-12-10 11:02:44

PHP函數(shù)eval()

2009-12-10 17:09:42

PHP編碼轉(zhuǎn)換函數(shù)

2009-12-10 15:41:35

PHP文件操作
點贊
收藏

51CTO技術(shù)棧公眾號