IT入门 > 教程 >

  • PHP imagecolorallocatealpha - 为一幅图像分配颜色和透

    日期:2022-10-12 18:27:28 点击:2079 好评:0

    imagecolorallocatealpha — 为一幅图像分配颜色和透明度。 语法 int imagecolorallocatealpha ( resource $image , int $red , int $green , int $blue , int $alpha ) imagecolorallocatealpha() 的行为和 imagecolorallocate() 相同,...

  • PHP imagecolorat - 取得某像素的颜色索引值

    日期:2022-10-12 18:27:28 点击:9731 好评:0

    imagecolorat — 取得某像素的颜色索引值。 语法 int imagecolorat ( resource $image , int $x , int $y ) 返回 image 所指定的图形中指定位置像素的颜色索引值。 如果 PHP 编译时加上了 GD 库 2.0 或更高的...

  • PHP imagecolorclosest - 取得与指定的颜色最接近的颜

    日期:2022-10-12 18:27:28 点击:8194 好评:0

    imagecolorclosest — 取得与指定的颜色最接近的颜色的索引值。 语法 int imagecolorclosest ( resource $image , int $red , int $green , int $blue ) 返回图像调色板中与指定的 RGB 值最"接近"的颜色。 指定的...

  • PHP imagecolorclosestalpha - 取得与指定的颜色加透明度

    日期:2022-10-12 18:27:28 点击:6520 好评:0

    imagecolorclosestalpha — 取得与指定的颜色加透明度最接近的颜色的索引。 语法 int imagecolorclosestalpha ( resource $image , int $red , int $green , int $blue , int $alpha ) 返回图像调色板中与指定的 RGB 值以...

  • PHP imagecolorclosesthwb - 取得与指定的颜色最接近的

    日期:2022-10-12 18:27:28 点击:4967 好评:0

    imagecolorclosesthwb — 取得与指定的颜色最接近的色度的黑白色的索引。 语法 int imagecolorclosesthwb ( resource $image , int $red , int $green , int $blue ) 取得与给定颜色最接近的色度的黑白色的索引。...

  • PHP 获取图像宽度与高度

    日期:2022-10-12 18:27:28 点击:9247 好评:0

    PHP 获取图像宽度函数:imagesx() imagesx() 函数用于获取图像的宽度,单位为像素,返回值为整型。 语法: int imagesx( resource image ) 参数 image 为如 imagecreatetruecolor()、imagecreatefromjpeg() 等函数...

  • PHP preg_filter() 函数

    日期:2022-10-12 18:27:28 点击:8153 好评:0

    preg_filter 函数用于执行一个正则表达式搜索和替换。 语法 mixed preg_filter ( mixed $pattern , mixed $replacement , mixed $subject [, int $limit = -1 [, int $count ]] ) preg_filter() 等价于 preg_replace() ,但它仅仅...

  • PHP preg_grep() 函数

    日期:2022-10-12 18:27:28 点击:3528 好评:0

    preg_grep 函数用于返回匹配模式的数组条目。 语法 array preg_grep ( string $pattern , array $input [, int $flags = 0 ] ) 返回给定数组 input 中与模式 pattern 匹配的元素组成的数组。 参数说明: $patter...

  • PHP preg_last_error() 函数

    日期:2022-10-12 18:27:28 点击:4228 好评:0

    preg_last_error 函数用于返回最后一个 PCRE 正则执行产生的错误代码。 语法 int preg_last_error ( void ) 实例 返回数组中指定匹配的元素: ?phppreg_match('/(?:\D+|\d+)*[!?]/', 'foobar foobar foobar'); if (pr...

  • PHP preg_match_all() 函数

    日期:2022-10-12 18:27:28 点击:3230 好评:0

    preg_match_all 函数用于执行一个全局正则表达式匹配。 语法 int preg_match_all ( string $pattern , string $subject [, array $matches [, int $flags = PREG_PATTERN_ORDER [, int $offset = 0 ]]] ) 搜索 subject 中所有匹配...

广告位API接口通信错误,查看德得广告获取帮助