-
bool imageline ( resource $image , int $x1 , int $y1 , int $x2 , int $y2 , int $color )画一条线段 imageline() 用 color 颜色在图像 image 中从坐标 x1,y1 到 x2,y2(图像左上角为 0, 0)画一条线段。查看全部
-
bool imagesetpixel ( resource $image , int $x , int $y , int $color )画一个单一像素 imagesetpixel() 在 image 图像中用 color 颜色在 x,y 坐标(图像左上角为 0,0)上画一个点。查看全部
-
bool imagestring ( resource $image , int $font , int $x , int $y , string $s , int $col ) 水平地画一行字符串 imagestring() 用 col 颜色将字符串 s 画到 image 所代表的图像的 x,y 坐标处(这是字符串左上角坐标,整幅图像的左上角为 0,0)。如果 font 是 1,2,3,4 或 5,则使用内置字体。查看全部
-
header("Content-Type:image/png") 告诉浏览器输出的内容是图像(png格式)查看全部
-
bool imagefill ( resource $image , int $x , int $y , int $color ) imagefill() 在 image 图像的坐标 x,y(图像左上角为 0, 0)处用 color 颜色执行区域填充(即与 x, y 点颜色相同且相邻的点都会被填充)。查看全部
-
bool imagepng ( resource $image [, string $filename ] ) 以 PNG 格式将图像输出到浏览器或文件 imagepng() 将 GD 图像流(image)以 PNG 格式输出到标准输出(通常为浏览器),或者如果用 filename 给出了文件名则将其输出到该文件。查看全部
-
bool imagedestroy ( resource $image )销毁一图像查看全部
-
resource imagecreatetruecolor ( int $width , int $height )新建一个真彩色图像 成功后返回图象资源,失败后返回 FALSE 。查看全部
-
int imagecolorallocate( resource $image , int $red , int $green , int $blue )为一幅图像分配颜色 返回一个标识符,代表了由给定的 RGB 成分组成的颜色。red,green 和 blue 分别是所需要的颜色的红,绿,蓝成分。这些参数是 0 到 255 的整数或者十六进制的 0x00 到 0xFF。imagecolorallocate() 必须被调用以创建每一种用在 image 所代表的图像中的颜色。 Note:第一次对 imagecolorallocate() 的调用会给基于调色板的图像填充背景色,即用 imagecreate() 建立的图像。 如果分配失败则返回 -1。查看全部
-
a.底图的实现,并且添加干扰元素--依赖PHP图片处理库GD,详情:http://php.net/gd b.生成验证内容--简单的随机数生成,使用PHP函数mt_rand();随机数字+字母生成,需要ASCII码理论基础;随机中文内容生成,需要UTF-8编码理论基础; c.验证内容保存在服务器端--需要PHP操作Session基础; d.验证内容的校验--需要前段Ajax基础;查看全部
-
$img = imagecreatetruecolor(100,30);查看全部
-
练习提查看全部
-
中文验证码制作注意事项查看全部
-
实现验证码底图查看全部
-
技术依赖查看全部
举报
0/150
提交
取消