Version: current

# Class PhpCaptcha

### Direct known subclasses

`PhpCaptchaColour`

Located at phpcaptcha/code/php-captcha.inc.php

## Methods summary

`public` | # `PhpCaptcha( mixed $aFonts, mixed $iWidth = CAPTCHA_WIDTH, mixed $iHeight = CAPTCHA_HEIGHT // height of image )`
`public` | # `CalculateSpacing( )`
`public` | # `SetWidth( mixed $iWidth )`
`public` | # `SetHeight( mixed $iHeight )`
`public` | # `SetNumChars( mixed $iNumChars )`
`public` | # `SetNumLines( mixed $iNumLines )`
`public` | # `DisplayShadow( mixed $bCharShadow )`
`public` | # `SetOwnerText( mixed $sOwnerText )`
`public` | # `SetCharSet( mixed $vCharSet )`
`public` | # `CaseInsensitive( mixed $bCaseInsensitive )`
`public` | # `SetBackgroundImages( mixed $vBackgroundImages )`
`public` | # `SetMinFontSize( mixed $iMinFontSize )`
`public` | # `SetMaxFontSize( mixed $iMaxFontSize )`
`public` | # `UseColour( mixed $bUseColour )`
`public` | # `SetFileType( mixed $sFileType )`
`public` | # `DrawLines( )`
`public` | # `DrawOwnerText( )`
`public` | # `GenerateCode( )`
`public` | # `DrawCharacters( )`
`public` | # `WriteFile( mixed $sFilename )`
`public` | # `Create( mixed $sFilename = '' )`
`public` | # `Validate( mixed $sUserCode, mixed $bCaseInsensitive = true )`

### Magic methods summary

## Properties summary

`public mixed` | $oImage | #
`public mixed` | $aFonts | #
`public mixed` | $iWidth | #
`public mixed` | $iHeight | #
`public mixed` | $iNumChars | #
`public mixed` | $iNumLines | #
`public mixed` | $iSpacing | #
`public mixed` | $bCharShadow | #
`public mixed` | $sOwnerText | #
`public mixed` | $aCharSet | #
`public mixed` | $bCaseInsensitive | #
`public mixed` | $vBackgroundImages | #
`public mixed` | $iMinFontSize | #
`public mixed` | $iMaxFontSize | #
`public mixed` | $bUseColour | #
`public mixed` | $sFileType | #
`public string` | $sCode | #

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -