摘要:
一、创建图片资源 imagecreatetruecolor(width,height) imagecreatefromgif(图片名称); imagecreatefromgif(图片名称); imagecreatefromgif(图片名称); 画出各种图形(圆形、矩形、线段、文字) imagegif(,图片位置);//此时是保存图片,不输出到浏览器 imagepng(,); imagejpeg(,); imagedestroy(图片资源)二、获取图片的属性 imagesx(res) imagesy(res) getimagesize(图片名称);//返回数组,0==width 1==heigh 阅读全文
posted @ 2013-03-21 23:14
达也.
阅读(177)
评论(0)
推荐(0)
摘要:
validation.class.php<?php class ValidationCode{ private $width; private $height; private $codeNum; private $image;//图像资源 private $distrubColorNum;//设置干扰元素数目 private $checkCode; function __construct($width=80,$height=20,$codeNum=4){ $this->width=$width; $this->height=$height; $this->codeN 阅读全文
posted @ 2013-03-21 20:09
达也.
阅读(115)
评论(0)
推荐(0)

浙公网安备 33010602011771号