Class Captcha
Génère une image de vérification (CAPTCHA).
$captcha = new Image_Captcha(300,80); $captcha->setLength(4); $captcha->setType(Image_Captcha::IMG_JPG); $captcha->setBorderSize(2); $captcha->addBorder('#000000'); $captcha->createCaptcha(); $captcha->display(); $_SESSION['captcha'] = $captcha->getRandomString();
- Pry\Image\Image
- Pry\Image\Captcha
Namespace: Pry\Image
Package: Image
Category: Pry
Author: Olivier ROGER <oroger.fr>
Version: 1.2.0
Located at Image/Captcha.class.php
Package: Image
Category: Pry
Author: Olivier ROGER <oroger.fr>
Version: 1.2.0
Located at Image/Captcha.class.php
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
RgbToHex(),
__destruct(),
addLogo(),
createFromType(),
crop(),
display(),
duplicate(),
getInfo(),
getSource(),
hexToRgb(),
mergeLogo(),
miniaturise(),
resize(),
restore(),
rotate(),
save(),
setBgColor(),
setBorder(),
setColor(),
setFont(),
setSource(),
setText(),
setType()
|
IMG_BMP,
IMG_GIF,
IMG_JPG,
IMG_PNG,
IMG_PSD,
IMG_SWF,
IMG_TIF
|
public
mixed
|
$arrayOfColor |
|
$couleur,
$font,
$height,
$infoImage,
$mime,
$poids,
$source,
$type,
$width
|